Fix deleting files when they don't exist

This commit is contained in:
Shrikant Sharat Kandula 2021-11-23 12:13:10 +05:30 committed by GitHub
parent 75a25925b8
commit 768885822b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ mount_letsencrypt_directory() {
configure_supervisord() {
SUPERVISORD_CONF_PATH="/opt/appsmith/templates/supervisord"
if [[ -z "$(ls -A /etc/supervisor/conf.d)" ]]; then
if [[ -n "$(ls -A /etc/supervisor/conf.d)" ]]; then
rm -f "/etc/supervisor/conf.d/"*
fi