mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Fix cron config file rights (fixes #88)
This commit is contained in:
parent
47b2c3faae
commit
009466999d
2 changed files with 4 additions and 0 deletions
|
@ -216,6 +216,8 @@ ynh_store_file_checksum "${final_path}/config/config.php"
|
||||||
|
|
||||||
cron_path="/etc/cron.d/$app"
|
cron_path="/etc/cron.d/$app"
|
||||||
cp -a ../conf/nextcloud.cron "$cron_path"
|
cp -a ../conf/nextcloud.cron "$cron_path"
|
||||||
|
chown root: "$cron_path"
|
||||||
|
chmod 644 "$cron_path"
|
||||||
|
|
||||||
ynh_replace_string "#USER#" "$app" "$cron_path"
|
ynh_replace_string "#USER#" "$app" "$cron_path"
|
||||||
ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path"
|
ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path"
|
||||||
|
|
|
@ -286,6 +286,8 @@ ynh_store_file_checksum "${final_path}/config/config.php"
|
||||||
|
|
||||||
cron_path="/etc/cron.d/$app"
|
cron_path="/etc/cron.d/$app"
|
||||||
cp -a ../conf/nextcloud.cron "$cron_path"
|
cp -a ../conf/nextcloud.cron "$cron_path"
|
||||||
|
chown root: "$cron_path"
|
||||||
|
chmod 644 "$cron_path"
|
||||||
|
|
||||||
ynh_replace_string "#USER#" "$app" "$cron_path"
|
ynh_replace_string "#USER#" "$app" "$cron_path"
|
||||||
ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path"
|
ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path"
|
||||||
|
|
Loading…
Add table
Reference in a new issue