1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00

Fix linter warnings

This commit is contained in:
ericgaspar 2020-12-14 10:34:54 +01:00
parent a9c7ecd35f
commit df00768c37
No known key found for this signature in database
GPG key ID: 574F281483054D44
6 changed files with 10 additions and 15 deletions

View file

@ -16,8 +16,6 @@
multi_instance=0
port_already_use=1
change_url=1
;;; Levels
Level 5=auto
;;; Options
Email=
Notification=none

View file

@ -6,7 +6,7 @@
"en": "Open-source pastebin allowing to upload texts",
"fr": "Pastebin open-source permettant de mettre en ligne du texte"
},
"version": "0.1.0~ynh3",
"version": "0.1.0~ynh4",
"url": "https://github.com/seejohnrun/haste-server",
"license": "MIT",
"maintainer": {
@ -48,6 +48,10 @@
"en": "Is it a public site? (you won't be able to use Haste command easily if not)",
"fr": "Est-ce un site publique ? (si non, vous ne pourrez pas utiliser la commande Haste facilement)"
},
"help": {
"en": "If enabled, Haste will be accessible by people who do not have an account. This can be changed later via the webadmin.",
"fr": "Si cette case est cochée, Haste sera accessible aux personnes nayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin."
},
"default": true
}
]

View file

@ -174,7 +174,7 @@ ynh_use_logrotate
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
yunohost service add $app --description "Haste is an open-source pastebin software" --log "/var/log/$app/$app.log"
yunohost service add $app --description="Haste is an open-source pastebin software" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE

View file

@ -25,7 +25,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
# Remove the service from the list of services known by Yunohost (added from `yunohost service add`)
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null
then
ynh_script_progression --message="Removing $app service integration..." --weight=1

View file

@ -101,7 +101,7 @@ chown $app -R /var/log/$app
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
yunohost service add $app --description "Haste is an open-source pastebin software" --log "/var/log/$app/$app.log"
yunohost service add $app --description="Haste is an open-source pastebin software" --log="/var/log/$app/$app.log"
#=================================================
# RESTORE SYSTEMD
@ -109,7 +109,7 @@ yunohost service add $app --description "Haste is an open-source pastebin softwa
ynh_script_progression --message="Restoring the systemd configuration..." --weight=2
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service
systemctl enable $app.service --quiet
#=================================================
# START SYSTEMD SERVICE

View file

@ -61,13 +61,6 @@ ynh_clean_setup () {
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# CHECK THE PATH
#=================================================
# Normalize the URL path syntax
path_url=$(ynh_normalize_url_path --path_url=$path_url)
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
@ -186,7 +179,7 @@ chmod +x /usr/bin/$app
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
yunohost service add $app --description "Haste is an open-source pastebin software" --log "/var/log/$app/$app.log"
yunohost service add $app --description="Haste is an open-source pastebin software" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE