mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Fix crontab
This commit is contained in:
parent
2706331022
commit
00f36f3be2
3 changed files with 6 additions and 4 deletions
|
@ -1,2 +1,2 @@
|
|||
# Run poller periodically to update Hubzilla
|
||||
*/10 * * * * cd YNH_WWW_PATH; /usr/bin/php bin/worker.php
|
||||
# Run poller periodically to update Friendica
|
||||
*/10 * * * * __USER__ cd __YNH_WWW_PATH__; /usr/bin/php bin/worker.php
|
||||
|
|
|
@ -143,7 +143,8 @@ sudo chmod -R 777 $final_path/view/smarty3
|
|||
chown -R $app: $final_path
|
||||
|
||||
# Set up poller
|
||||
sed -i "s@YNH_WWW_PATH@$final_path@g" ../conf/poller-cron
|
||||
ynh_replace_string "__YNH_WWW_PATH__" "$final_path" ../conf/poller-cron
|
||||
ynh_replace_string "__USER__" "$app" ../conf/poller-cron
|
||||
sudo cp ../conf/poller-cron /etc/cron.d/$app
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -97,7 +97,8 @@ ynh_backup_if_checksum_is_different "$final_path/.htconfig.php"
|
|||
ynh_store_file_checksum "$final_path/.htconfig.php"
|
||||
|
||||
# Set up poller
|
||||
sed -i "s@YNH_WWW_PATH@$final_path@g" ../conf/poller-cron
|
||||
ynh_replace_string "__YNH_WWW_PATH__" "$final_path" ../conf/poller-cron
|
||||
ynh_replace_string "__USER__" "$app" ../conf/poller-cron
|
||||
sudo cp ../conf/poller-cron /etc/cron.d/$app
|
||||
|
||||
# Run composer
|
||||
|
|
Loading…
Add table
Reference in a new issue