mirror of
https://github.com/YunoHost-Apps/komga_ynh.git
synced 2024-09-03 19:36:07 +02:00
housecleaning patches
This commit is contained in:
parent
2461b79ef6
commit
2b805c0a3b
2 changed files with 15 additions and 1 deletions
|
@ -7,7 +7,7 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
WorkingDirectory=__FINALPATH__/
|
||||||
ExecStart=java -jar __FINALPATH__/script --komga.database.file /opt/yunohost/__APP__/database.sqlite --server.port __PORT__ >> /var/log/__APP__/__APP__.log 2>&1
|
ExecStart=java -jar __FINALPATH__/app.jar --server.port __PORT__ >> /var/log/__APP__/__APP__.log 2>&1
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -140,6 +140,20 @@ ynh_script_progression --message="Configuring system user..." --time --weight=1
|
||||||
# Create a system user
|
# Create a system user
|
||||||
ynh_system_user_create --username=$app
|
ynh_system_user_create --username=$app
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SPECIFIC SETUP
|
||||||
|
#=================================================
|
||||||
|
# CREATE DIRECTORIES
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
mkdir -p /home/$app/.komga/
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SECURING FILES AND DIRECTORIES
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
chmod -R 777 /home/$app/.komga/
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue