@@ -714,7 +714,7 @@ function update($event_name, $data) {
714714 }
715715
716716 //* Unmount the old log directory bfore we move the log dir
717- $ app ->system ->exec_safe ('umount ? ' , $ data ['old ' ]['document_root ' ].'/log ' );
717+ $ app ->system ->exec_safe ('umount -l ? ' , $ data ['old ' ]['document_root ' ].'/log ' );
718718
719719 //* Create new base directory, if it does not exist yet
720720 if (!is_dir ($ new_dir )) $ app ->system ->mkdirpath ($ new_dir );
@@ -808,7 +808,7 @@ function update($event_name, $data) {
808808 $ app ->system ->removeLine ('/etc/fstab ' , $ fstab_line );
809809
810810 //* Unmount log directory
811- $ app ->system ->exec_safe ('umount ? ' , $ data ['old ' ]['document_root ' ].'/ ' .$ old_log_folder );
811+ $ app ->system ->exec_safe ('umount -l ? ' , $ data ['old ' ]['document_root ' ].'/ ' .$ old_log_folder );
812812 }
813813
814814 //* Create the log dir if nescessary and mount it
@@ -2138,10 +2138,10 @@ function delete($event_name, $data) {
21382138 if ($ data ['old ' ]['type ' ] == 'vhost ' || $ data ['old ' ]['type ' ] == 'vhostsubdomain ' || $ data ['old ' ]['type ' ] == 'vhostalias ' ){
21392139 if (is_array ($ log_folders ) && !empty ($ log_folders )){
21402140 foreach ($ log_folders as $ log_folder ){
2141- $ app ->system ->exec_safe ('umount ? 2>/dev/null ' , $ data ['old ' ]['document_root ' ].'/ ' .$ log_folder );
2141+ $ app ->system ->exec_safe ('umount -l ? 2>/dev/null ' , $ data ['old ' ]['document_root ' ].'/ ' .$ log_folder );
21422142 }
21432143 } else {
2144- $ app ->system ->exec_safe ('umount ? 2>/dev/null ' , $ data ['old ' ]['document_root ' ].'/ ' .$ log_folder );
2144+ $ app ->system ->exec_safe ('umount -l ? 2>/dev/null ' , $ data ['old ' ]['document_root ' ].'/ ' .$ log_folder );
21452145 }
21462146
21472147 // remove letsencrypt if it exists (renew will always fail otherwise)
0 commit comments