mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
Fixed crontab
This commit is contained in:
parent
ab3c0127d9
commit
dcfea03aef
3 changed files with 6 additions and 4 deletions
|
@ -1,2 +1,2 @@
|
||||||
# Run poller periodically to update Hubzilla
|
# Run poller periodically to update Hubzilla
|
||||||
*/10 * * * * cd YNH_WWW_PATH; /usr/bin/php Zotlabs/Daemon/Master.php Cron
|
*/10 * * * * __USER__ cd YNH_WWW_PATH; /usr/bin/php Zotlabs/Daemon/Master.php Cron
|
||||||
|
|
|
@ -140,7 +140,8 @@ ynh_add_fpm_config
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
|
|
||||||
# Set up poller
|
# 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
|
sudo cp ../conf/poller-cron /etc/cron.d/$app
|
||||||
|
|
||||||
# Make app public
|
# Make app public
|
||||||
|
|
|
@ -122,7 +122,8 @@ ynh_store_file_checksum "$final_path/.htconfig.php"
|
||||||
ynh_use_logrotate "$final_path/php.log" --non-append
|
ynh_use_logrotate "$final_path/php.log" --non-append
|
||||||
|
|
||||||
# Set up poller
|
# 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
|
sudo cp ../conf/poller-cron /etc/cron.d/$app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue