mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Fix CRON
This commit is contained in:
parent
c309a117e7
commit
5f421f48d7
3 changed files with 1 additions and 5 deletions
|
@ -1,2 +1,2 @@
|
|||
RAILS_ENV=production
|
||||
@daily cd __FINAL__PATH__/live && __RBENVROOT__/shims/bundle exec rake __USER__:media:remove_remote
|
||||
@daily cd __FINAL_PATH__/live && RAILS_ENV=production bin/tootctl media remove
|
||||
|
|
|
@ -230,8 +230,6 @@ ynh_secure_remove --file="$final_path/live/key.txt"
|
|||
ynh_script_progression --message="Setuping a cron job for removing cache..." --weight=1
|
||||
|
||||
ynh_replace_string --match_string="__FINAL_PATH__" --replace_string="$final_path" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__RBENVROOT__" --replace_string="$RBENV_ROOT" --target_file="../conf/cron"
|
||||
cp -f ../conf/cron /etc/cron.d/$app
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -308,8 +308,6 @@ ynh_store_file_checksum --file="$config"
|
|||
ynh_script_progression --message="Setuping a cron job for removing cache..." --weight=1
|
||||
|
||||
ynh_replace_string --match_string="__FINAL_PATH__" --replace_string="$final_path" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__RBENVROOT__" --replace_string="$RBENV_ROOT" --target_file="../conf/cron"
|
||||
cp -f ../conf/cron /etc/cron.d/$app
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue