File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -788,15 +788,15 @@ function update($event_name, $data) {
788788 $ last_updated = array_unique ($ last_updated , SORT_REGULAR );
789789 sort ($ last_updated , SORT_STRING );
790790 $ update_hash = hash ('md5 ' , implode (' ' , $ last_updated ));
791+ $ check_for_jailkit_updates =false ;
791792
792793 // Create jailkit chroot when enabling php_fpm_chroot
793- if ($ data ['new ' ]['php_fpm_chroot ' ] == 'y ' && $ data ['old ' ]['php_fpm_chroot ' ] != 'y ' ) {
794+ if ($ data ['new ' ]['php_fpm_chroot ' ] == 'y ' && $ data ['old ' ]['php_fpm_chroot ' ] != 'y ' && $ data [ ' new ' ][ ' php ' ] != ' no ' ) {
794795 $ website = $ app ->db ->queryOneRecord ('SELECT * FROM web_domain WHERE domain_id = ? ' , $ data ['new ' ]['domain_id ' ]);
795796 $ this ->website = array_merge ($ website , $ data ['new ' ], array ('new_jailkit_hash ' => $ update_hash ));
796797 $ this ->jailkit_config = $ jailkit_config ;
797798 $ this ->_setup_jailkit_chroot ();
798799 $ this ->_add_jailkit_user ();
799- $ check_for_jailkit_updates =false ;
800800 // else delete if unused
801801 } elseif ($ data ['new ' ]['delete_unused_jailkit ' ] == 'y ' && $ data ['new ' ]['php_fpm_chroot ' ] != 'y ' ) {
802802 $ check_for_jailkit_updates =false ;
Original file line number Diff line number Diff line change @@ -626,15 +626,15 @@ function update($event_name, $data) {
626626 $ last_updated = array_unique ($ last_updated , SORT_REGULAR );
627627 sort ($ last_updated , SORT_STRING );
628628 $ update_hash = hash ('md5 ' , implode (' ' , $ last_updated ));
629+ $ check_for_jailkit_updates =false ;
629630
630631 // Create jailkit chroot when enabling php_fpm_chroot
631- if ($ data ['new ' ]['php_fpm_chroot ' ] == 'y ' && $ data ['old ' ]['php_fpm_chroot ' ] != 'y ' ) {
632+ if ($ data ['new ' ]['php_fpm_chroot ' ] == 'y ' && $ data ['old ' ]['php_fpm_chroot ' ] != 'y ' && $ data [ ' new ' ][ ' php ' ] != ' no ' ) {
632633 $ website = $ app ->db ->queryOneRecord ('SELECT * FROM web_domain WHERE domain_id = ? ' , $ data ['new ' ]['domain_id ' ]);
633634 $ this ->website = array_merge ($ website , $ data ['new ' ], array ('new_jailkit_hash ' => $ update_hash ));
634635 $ this ->jailkit_config = $ jailkit_config ;
635636 $ this ->_setup_jailkit_chroot ();
636637 $ this ->_add_jailkit_user ();
637- $ check_for_jailkit_updates =false ;
638638 // else delete if unused
639639 } elseif ($ data ['new ' ]['delete_unused_jailkit ' ] == 'y ' && $ data ['new ' ]['php_fpm_chroot ' ] != 'y ' ) {
640640 $ check_for_jailkit_updates =false ;
You can’t perform that action at this time.
0 commit comments