1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

cp cron in upgrade

This commit is contained in:
anmol26s 2020-04-11 00:17:43 +05:30
parent 42bedb6ade
commit 561bb0afc0

View file

@ -125,7 +125,7 @@ rm -Rf "$final_path/addon"
ynh_setup_source --dest_dir="$final_path/addon" --source_id="addons"
# 3 - some extra folders
sudo chmod -R 775 $final_path/view/smarty3
chmod -R 775 $final_path/view/smarty3
#=================================================
@ -174,7 +174,7 @@ ynh_store_file_checksum --file="$final_path/config/local.config.php"
# Set up cron job
ynh_replace_string --match_string="__YNH_WWW_PATH__" --replace_string="$final_path" --target_file="../conf/poller-cron"
ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="../conf/poller-cron"
ynh_restore_file --origin_path="../conf/poller-cron" --dest_path="/etc/cron.d/$app"
cp "../conf/poller-cron" "/etc/cron.d/$app"
# Run composer
(cd $final_path && sudo php bin/composer.phar install)