|
@@ -404,7 +404,7 @@ function restore_local_gnusocial {
|
404
|
404
|
gnusocial_dir=/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs
|
405
|
405
|
# stop the daemons
|
406
|
406
|
cd $gnusocial_dir
|
407
|
|
- scripts/stopdaemons.sh
|
|
407
|
+ su -c "sh scripts/stopdaemons.sh" -s /bin/sh www-data
|
408
|
408
|
|
409
|
409
|
function_check gnusocial_create_database
|
410
|
410
|
gnusocial_create_database
|
|
@@ -416,7 +416,7 @@ function restore_local_gnusocial {
|
416
|
416
|
|
417
|
417
|
# start the daemons
|
418
|
418
|
cd $gnusocial_dir
|
419
|
|
- scripts/startdaemons.sh
|
|
419
|
+ su -c "sh scripts/startdaemons.sh" -s /bin/sh www-data
|
420
|
420
|
echo $"Restore of gnusocial complete"
|
421
|
421
|
fi
|
422
|
422
|
}
|
|
@@ -452,7 +452,7 @@ function restore_remote_gnusocial {
|
452
|
452
|
|
453
|
453
|
# stop the daemons
|
454
|
454
|
cd /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs
|
455
|
|
- ./scripts/stopdaemons.sh
|
|
455
|
+ su -c "sh scripts/stopdaemons.sh" -s /bin/sh www-data
|
456
|
456
|
|
457
|
457
|
function_check gnusocial_create_database
|
458
|
458
|
gnusocial_create_database
|
|
@@ -465,7 +465,7 @@ function restore_remote_gnusocial {
|
465
|
465
|
|
466
|
466
|
# start the daemons
|
467
|
467
|
cd /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs
|
468
|
|
- ./scripts/startdaemons.sh
|
|
468
|
+ su -c "sh scripts/startdaemons.sh" -s /bin/sh www-data
|
469
|
469
|
echo $"Restore of gnusocial complete"
|
470
|
470
|
fi
|
471
|
471
|
}
|
|
@@ -487,7 +487,7 @@ function remove_gnusocial {
|
487
|
487
|
fi
|
488
|
488
|
if [ -f /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts/stopdaemons.sh ]; then
|
489
|
489
|
cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts
|
490
|
|
- ./scripts/stopdaemons.sh
|
|
490
|
+ su -c "sh scripts/stopdaemons.sh" -s /bin/sh www-data
|
491
|
491
|
fi
|
492
|
492
|
kill_pid=$(ps aux | grep /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts/queuedaemon.php | awk -F ' ' '{print $2}' | head -n 1)
|
493
|
493
|
kill -9 $kill_pid
|