mirror of
https://github.com/YunoHost-Apps/peertube_ynh.git
synced 2024-09-03 19:56:29 +02:00
cleaning
This commit is contained in:
parent
aba2e5be9e
commit
c0e1dc2f81
3 changed files with 5 additions and 9 deletions
|
@ -74,7 +74,7 @@ chown -R $app:$app "/var/log/$app"
|
|||
# Use logrotate to manage application logfile(s)
|
||||
ynh_use_logrotate
|
||||
|
||||
yunohost service add $app --description="$app daemon for Peertube" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp
|
||||
yunohost service add $app --description="Federated video streaming platform" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp
|
||||
|
||||
#=================================================
|
||||
# BUILD YARN DEPENDENCIES
|
||||
|
@ -93,13 +93,11 @@ popd
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..."
|
||||
|
||||
ynh_add_config --template="../conf/production.yaml" --destination="$install_dir/config/production.yaml"
|
||||
|
||||
ynh_add_config --template="production.yaml" --destination="$install_dir/config/production.yaml"
|
||||
chmod 400 "$install_dir/config/production.yaml"
|
||||
chown $app:$app "$install_dir/config/production.yaml"
|
||||
|
||||
ynh_add_config --template="../conf/local-production.json" --destination="$install_dir/config/local-production.json"
|
||||
|
||||
ynh_add_config --template="local-production.json" --destination="$install_dir/config/local-production.json"
|
||||
chmod 600 "$install_dir/config/local-production.json"
|
||||
chown $app:$app "$install_dir/config/local-production.json"
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ mkdir -p "/var/log/$app"
|
|||
chown -R $app:$app "/var/log/$app"
|
||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||
|
||||
yunohost service add $app --description="$app daemon for Peertube" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp
|
||||
yunohost service add $app --description="Federated video streaming platform" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
|
@ -98,7 +98,7 @@ chown -R $app:$app "/var/log/$app"
|
|||
# Use logrotate to manage app-specific logfile(s)
|
||||
ynh_use_logrotate --non-append
|
||||
|
||||
yunohost service add $app --description="$app daemon for Peertube" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp
|
||||
yunohost service add $app --description="Federated video streaming platform" --log="/var/log/$app/$app.log" --needs_exposed_ports $port_rtmp
|
||||
|
||||
#=================================================
|
||||
# Generate secrets if they don't exist
|
||||
|
@ -127,12 +127,10 @@ popd
|
|||
ynh_script_progression --message="Updating a config file..."
|
||||
|
||||
ynh_add_config --template="../conf/production.yaml" --destination="$install_dir/config/production.yaml"
|
||||
|
||||
chmod 400 "$install_dir/config/production.yaml"
|
||||
chown $app:$app "$install_dir/config/production.yaml"
|
||||
|
||||
ynh_backup_if_checksum_is_different --file="$install_dir/config/local-production.json"
|
||||
|
||||
chmod 600 "$install_dir/config/local-production.json"
|
||||
chown $app:$app "$install_dir/config/local-production.json"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue