1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mstream_ynh.git synced 2024-09-03 19:46:17 +02:00
This commit is contained in:
Éric Gaspar 2023-01-10 19:21:17 +01:00
parent c50194a574
commit bdb545144b
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Music Mstream Server Description=Mstream: music server
After=network.target After=network.target
[Service] [Service]
@ -9,7 +9,7 @@ Group=__APP__
Environment=NODE_PORT=__PORT__ Environment=NODE_PORT=__PORT__
WorkingDirectory=__FINALPATH__/ WorkingDirectory=__FINALPATH__/
Environment="PATH=__ENV_PATH__" Environment="PATH=__ENV_PATH__"
ExecStart=__YNH_NODE__ __FINALPATH__/cli-boot-wrapper.js -j __FINALPATH__/save/conf/default.json ExecStart=__FINALPATH__/mStream.AppImage -j __FINALPATH__/default.json
Restart=on-failure Restart=on-failure
[Install] [Install]

View file

@ -120,10 +120,10 @@ chown -R $app:www-data "$datadir"
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/default.conf" --destination="$final_path/save/conf/default.json" ynh_add_config --template="../conf/default.conf" --destination="$final_path/default.json"
chmod 650 "$final_path/save/conf/default.json" chmod 650 "$final_path/default.json"
chown $app:$app "$final_path/save/conf/default.json" chown $app:$app "$final_path/default.json"
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD