mirror of
https://github.com/YunoHost-Apps/headphones_ynh.git
synced 2024-09-03 19:26:02 +02:00
cleaning
This commit is contained in:
parent
f5f94d4462
commit
2f5d7779dc
5 changed files with 12 additions and 12 deletions
|
@ -6,7 +6,7 @@ Type=simple
|
|||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/python3 __INSTALL_DIR__/Headphones.py --config /etc/__APP__/__APP__.ini --datadir __DATA_DIR__ --nolaunch
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/python3 __INSTALL_DIR__/Headphones.py --config /etc/__APP__/headphones.ini --datadir __DATA_DIR__ --nolaunch
|
||||
|
||||
# Sandboxing options to harden security
|
||||
# Depending on specificities of your service/app, you may need to tweak these
|
||||
|
|
|
@ -34,10 +34,10 @@ ynh_script_progression --message="Updating a configuration file..."
|
|||
|
||||
path=$new_path
|
||||
domain=$new_domain
|
||||
ynh_add_config --template="../conf/headphones.ini" --destination="/etc/$app/$app.ini"
|
||||
ynh_add_config --template="../conf/headphones.ini" --destination="/etc/$app/headphones.ini"
|
||||
|
||||
chmod 600 "/etc/$app/$app.ini"
|
||||
chown $app:$app "/etc/$app/$app.ini"
|
||||
chmod 600 "/etc/$app/headphones.ini"
|
||||
chown $app:$app "/etc/$app/headphones.ini"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
|
@ -44,10 +44,10 @@ python3 -m venv $install_dir/venv
|
|||
ynh_script_progression --message="Adding a configuration file..."
|
||||
|
||||
mkdir -p "/etc/$app"
|
||||
ynh_add_config --template="../conf/headphones.ini" --destination="/etc/$app/$app.ini"
|
||||
ynh_add_config --template="../conf/headphones.ini" --destination="/etc/$app/headphones.ini"
|
||||
|
||||
chmod 600 "/etc/$app/$app.ini"
|
||||
chown $app:$app "/etc/$app/$app.ini"
|
||||
chmod 600 "/etc/$app/headphones.ini"
|
||||
chown $app:$app "/etc/$app/headphones.ini"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
|
@ -47,8 +47,8 @@ ynh_script_progression --message="Restoring various files..."
|
|||
|
||||
ynh_restore_file --origin_path="/etc/$app/"
|
||||
|
||||
chmod 600 "/etc/$app/$app.ini"
|
||||
chown $app:$app "/etc/$app/$app.ini"
|
||||
chmod 600 "/etc/$app/headphones.ini"
|
||||
chown $app:$app "/etc/$app/headphones.ini"
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEMD
|
||||
|
|
|
@ -64,10 +64,10 @@ python3 -m venv $install_dir/venv
|
|||
ynh_script_progression --message="Updating a configuration file..."
|
||||
|
||||
mkdir -p "/etc/$app"
|
||||
ynh_add_config --template="../conf/headphones.ini" --destination="/etc/$app/$app.ini"
|
||||
ynh_add_config --template="../conf/headphones.ini" --destination="/etc/$app/headphones.ini"
|
||||
|
||||
chmod 600 "/etc/$app/$app.ini"
|
||||
chown $app:$app "/etc/$app/$app.ini"
|
||||
chmod 600 "/etc/$app/headphones.ini"
|
||||
chown $app:$app "/etc/$app/headphones.ini"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
Loading…
Add table
Reference in a new issue