diff --git a/bash/ss-clean-files.txt b/bash/ss-clean-files.txt index 7e8e86d3aeef..b162735e6681 100644 --- a/bash/ss-clean-files.txt +++ b/bash/ss-clean-files.txt @@ -32,6 +32,9 @@ ## H. Delete Oldest SS-Config Backups ## I. Delete Deprecated WordPress MU Plugins ## J. Delete Deprecated Bash Scripts + +## K. Delete Disabled SlickStack Files + ## K. Delete Deprecated SlickStack Files ## L. Delete Unused WordPress Core Files @@ -281,6 +284,15 @@ ss_rm /var/www/ss-purge ss_rm /var/www/ss-update ss_rm /var/www/ss-update-packages +#################################################################################################### +#### K. SS-Clean-Files: Delete Disabled SlickStack Files ######################################### +#################################################################################################### + +## delete adminer.php (conditional) ## + if [[ "${SS_ADMINER_PUBLIC}" == "false" ]]; then + ss_rm "${PATH_ADMINER_PHP}" +fi + #################################################################################################### #### K. SS-Clean-Files: Delete Deprecated SlickStack Files ######################################### #################################################################################################### @@ -1677,5 +1689,6 @@ chmod 0700 /var/www/crons/custom/*cron* ## 0700 means only root/sudo can execute ## Ref: https://unix.stackexchange.com/questions/130786/can-i-remove-files-in-var-log-journal-and-var-cache-abrt-di-usr ## Ref: https://superuser.com/questions/150136/deleted-opt-directory-from-linux-machine-will-there-be-any-reboot-problem-for ## Ref: https://stackoverflow.com/questions/23582472/index-php-in-uploads-directory-wordpress +## Ref: https://github.com/littlebizzy/slickstack/issues/196 ## SS_EOF