diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index 7e2283e5..a20df877 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -437,6 +437,9 @@ function remove_gnusocial { cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts ./scripts/stopdaemons.sh fi + kill_pid=$(ps aux | grep /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts/queuedaemon.php | awk -F ' ' '{print $2}' | head -n 1) + kill -9 $kill_pid + if [ -d /var/www/$GNUSOCIAL_DOMAIN_NAME ]; then rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME fi diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv index 5f0cdfa2..501e97a4 100755 --- a/src/freedombone-app-postactiv +++ b/src/freedombone-app-postactiv @@ -415,6 +415,8 @@ function remove_postactiv { cd /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/scripts ./scripts/stopdaemons.sh fi + kill_pid=$(ps aux | grep /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/scripts/queuedaemon.php | awk -F ' ' '{print $2}' | head -n 1) + kill -9 $kill_pid if [ -d /var/www/$POSTACTIV_DOMAIN_NAME ]; then rm -rf /var/www/$POSTACTIV_DOMAIN_NAME