mirror of
https://github.com/YunoHost-Apps/droppy_ynh.git
synced 2024-09-03 18:26:27 +02:00
parent
7609636ef4
commit
4a2cfab649
5 changed files with 6 additions and 8 deletions
|
@ -17,8 +17,6 @@
|
|||
multi_instance=0
|
||||
port_already_use=0
|
||||
change_url=1
|
||||
;;; Levels
|
||||
Level 5=auto
|
||||
;;; Options
|
||||
Email=
|
||||
Notification=none
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Self-hosted file storage server",
|
||||
"fr": "Serveur de stockage de fichiers auto-hébergé"
|
||||
},
|
||||
"version": "12.2.0~ynh2",
|
||||
"version": "12.2.0~ynh3",
|
||||
"url": "https://github.com/silverwind/droppy",
|
||||
"license": "BSD-2-Clause",
|
||||
"maintainer": {
|
||||
|
|
|
@ -160,7 +160,7 @@ chmod 755 $final_path
|
|||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
yunohost service add $app --description "Self-hosted file storage server" --log="/var/log/$app/$app.log"
|
||||
yunohost service add $app --description="Self-hosted file storage server" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
|
@ -89,21 +89,21 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
|||
ynh_script_progression --message="Restoring the systemd configuration..." --weight=3
|
||||
|
||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||
systemctl enable $app.service
|
||||
systemctl enable $app.service --quiet
|
||||
|
||||
#=================================================
|
||||
# RESTORE VARIOUS FILES
|
||||
#=================================================
|
||||
|
||||
ynh_restore_file "/home/yunohost.app/$app"
|
||||
chown -R "$app:$app" "/home/yunohost.app/$app"
|
||||
chown -R $app:$app "/home/yunohost.app/$app"
|
||||
|
||||
#=================================================
|
||||
# INTEGRATE SERVICE IN YUNOHOST
|
||||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=2
|
||||
|
||||
yunohost service add $app --description "Self-hosted file storage server" --log "/var/log/$app/$app.log"
|
||||
yunohost service add $app --description="Self-hosted file storage server" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
|
@ -165,7 +165,7 @@ chmod 755 $final_path
|
|||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=2
|
||||
|
||||
yunohost service add $app --description "Self-hosted file storage server" --log="/var/log/$app/$app.log"
|
||||
yunohost service add $app --description="Self-hosted file storage server" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
Loading…
Reference in a new issue