mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
simplify ynh_add_config templates paths
This commit is contained in:
parent
90ea2a33de
commit
a42ab57007
3 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,7 @@ ynh_change_url_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Modifying a config file..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/config.yml" --destination="$install_dir/config/config.yml"
|
||||
ynh_add_config --template="config.yml" --destination="$install_dir/config/config.yml"
|
||||
|
||||
chmod 600 "$install_dir/config/config.yml"
|
||||
chown "$app:$app" "$install_dir/config/config.yml"
|
||||
|
|
|
@ -65,7 +65,7 @@ chown -R "$app:www-data" "$install_dir"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Modifying a config file..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/config.yml" --destination="$install_dir/config/config.yml"
|
||||
ynh_add_config --template="config.yml" --destination="$install_dir/config/config.yml"
|
||||
|
||||
chmod 600 "$install_dir/config/config.yml"
|
||||
chown "$app:$app" "$install_dir/config/config.yml"
|
||||
|
@ -89,7 +89,7 @@ ynh_script_progression --message="Adding system configurations related to $app .
|
|||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app"
|
||||
ynh_add_config --template="cron_invidious" --destination="/etc/cron.d/$app"
|
||||
chown root: "/etc/cron.d/$app"
|
||||
chmod 644 "/etc/cron.d/$app"
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ ynh_add_nginx_config
|
|||
|
||||
ynh_add_systemd_config
|
||||
|
||||
ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app"
|
||||
ynh_add_config --template="cron_invidious" --destination="/etc/cron.d/$app"
|
||||
chown root: "/etc/cron.d/$app"
|
||||
chmod 644 "/etc/cron.d/$app"
|
||||
|
||||
|
@ -113,7 +113,7 @@ yunohost service add "$app" --description="Invidious is an alternative front-end
|
|||
#=================================================
|
||||
ynh_script_progression --message="Modifying a config file..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/config.yml" --destination="$install_dir/config/config.yml"
|
||||
ynh_add_config --template="config.yml" --destination="$install_dir/config/config.yml"
|
||||
|
||||
chmod 600 "$install_dir/config/config.yml"
|
||||
chown "$app:$app" "$install_dir/config/config.yml"
|
||||
|
|
Loading…
Add table
Reference in a new issue