diff options
Diffstat (limited to 'packages/pure-ftpd.xml')
-rw-r--r-- | packages/pure-ftpd.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/pure-ftpd.xml b/packages/pure-ftpd.xml index 16427522..eeeda8cc 100644 --- a/packages/pure-ftpd.xml +++ b/packages/pure-ftpd.xml @@ -77,6 +77,8 @@ system("rm -rf /usr/local/etc/pure*"); </custom_php_deinstall_command> <custom_add_php_command> + conf_mount_rw(); + config_lock(); $expires = ""; if($_POST['expiration']) $expires = " -e " . $_POST['expiration']; mwexec("/usr/sbin/pw useradd " . $_POST['username'] . $expires . " -m -k /home/ " . $_POST['username'] . " -s /usr/sbin/nologin"); @@ -85,6 +87,8 @@ $crypted_pw = crypt($_POST['password'],$salt); fwrite($fd, $crypted_pw); pclose($fd); + conf_mount_ro(); + config_unlock(); $savemsg = "User has been added."; </custom_add_php_command> <custom_delete_php_command> |