Commit 324c7dca authored by Austin Clements's avatar Austin Clements

Fixed error in doaccounts when SFS isn't running

parent dfc05da2
...@@ -1139,6 +1139,7 @@ sub doaccounts() ...@@ -1139,6 +1139,7 @@ sub doaccounts()
# #
# Create sfs_users file and populate it with public SFS keys # Create sfs_users file and populate it with public SFS keys
# #
if ($USESFS) {
do { do {
if (!open(SFSKEYS, "> /etc/sfs/sfs_users.new")) { if (!open(SFSKEYS, "> /etc/sfs/sfs_users.new")) {
warn("*** WARNING: Could not open /etc/sfs/sfs_users.new: $!\n"); warn("*** WARNING: Could not open /etc/sfs/sfs_users.new: $!\n");
...@@ -1207,6 +1208,7 @@ sub doaccounts() ...@@ -1207,6 +1208,7 @@ sub doaccounts()
# The do-while is an easy way out in case of errors # The do-while is an easy way out in case of errors
} }
while 0; while 0;
}
return 0; return 0;
} }
......
...@@ -1139,6 +1139,7 @@ sub doaccounts() ...@@ -1139,6 +1139,7 @@ sub doaccounts()
# #
# Create sfs_users file and populate it with public SFS keys # Create sfs_users file and populate it with public SFS keys
# #
if ($USESFS) {
do { do {
if (!open(SFSKEYS, "> /etc/sfs/sfs_users.new")) { if (!open(SFSKEYS, "> /etc/sfs/sfs_users.new")) {
warn("*** WARNING: Could not open /etc/sfs/sfs_users.new: $!\n"); warn("*** WARNING: Could not open /etc/sfs/sfs_users.new: $!\n");
...@@ -1207,6 +1208,7 @@ sub doaccounts() ...@@ -1207,6 +1208,7 @@ sub doaccounts()
# The do-while is an easy way out in case of errors # The do-while is an easy way out in case of errors
} }
while 0; while 0;
}
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment