Remove hourly script before stopping daemons
This commit is contained in:
parent
f954fccfff
commit
1dd5228ef6
|
@ -430,6 +430,9 @@ function remove_gnusocial {
|
|||
echo "Removing $GNUSOCIAL_DOMAIN_NAME"
|
||||
nginx_dissite $GNUSOCIAL_DOMAIN_NAME
|
||||
remove_certs $GNUSOCIAL_DOMAIN_NAME
|
||||
if [ -f /etc/cron.hourly/gnusocial-daemons ]; then
|
||||
rm /etc/cron.hourly/gnusocial-daemons
|
||||
fi
|
||||
if [ -f /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts/stopdaemons.sh ]; then
|
||||
cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts
|
||||
./scripts/stopdaemons.sh
|
||||
|
@ -450,9 +453,6 @@ function remove_gnusocial {
|
|||
remove_app gnusocial
|
||||
remove_completion_param install_gnusocial
|
||||
sed -i '/gnusocial/d' $COMPLETION_FILE
|
||||
if [ -f /etc/cron.hourly/gnusocial-daemons ]; then
|
||||
rm /etc/cron.hourly/gnusocial-daemons
|
||||
fi
|
||||
remove_backup_database_local gnusocial
|
||||
|
||||
function_check remove_ddns_domain
|
||||
|
|
|
@ -408,10 +408,14 @@ function remove_postactiv {
|
|||
echo "Removing $POSTACTIV_DOMAIN_NAME"
|
||||
nginx_dissite $POSTACTIV_DOMAIN_NAME
|
||||
remove_certs $POSTACTIV_DOMAIN_NAME
|
||||
if [ -f /etc/cron.hourly/postactiv-daemons ]; then
|
||||
rm /etc/cron.hourly/postactiv-daemons
|
||||
fi
|
||||
if [ -f /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/scripts/stopdaemons.sh ]; then
|
||||
cd /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/scripts
|
||||
./scripts/stopdaemons.sh
|
||||
fi
|
||||
|
||||
if [ -d /var/www/$POSTACTIV_DOMAIN_NAME ]; then
|
||||
rm -rf /var/www/$POSTACTIV_DOMAIN_NAME
|
||||
fi
|
||||
|
@ -428,9 +432,6 @@ function remove_postactiv {
|
|||
remove_app postactiv
|
||||
remove_completion_param install_postactiv
|
||||
sed -i '/postactiv/d' $COMPLETION_FILE
|
||||
if [ -f /etc/cron.hourly/postactiv-daemons ]; then
|
||||
rm /etc/cron.hourly/postactiv-daemons
|
||||
fi
|
||||
remove_backup_database_local postactiv
|
||||
|
||||
function_check remove_ddns_domain
|
||||
|
|
Loading…
Reference in New Issue