mirror of
https://github.com/YunoHost-Apps/uptime-kuma_ynh.git
synced 2024-10-01 13:34:58 +02:00
Merge pull request #3 from YunoHost-Apps/testing
Reach for level7 + fix CI
This commit is contained in:
commit
1e274b81a2
6 changed files with 10 additions and 8 deletions
|
@ -17,7 +17,7 @@
|
|||
setup_private=1
|
||||
setup_public=1
|
||||
upgrade=1
|
||||
upgrade=1 from_commit=20c58daa4be910e554058914633f9a94500bc7e1
|
||||
upgrade=1 from_commit=2e870313227801603a41fd3bfcaafa912dce6d0a
|
||||
backup_restore=1
|
||||
multi_instance=1
|
||||
port_already_use=0
|
||||
|
@ -26,6 +26,6 @@
|
|||
Email=
|
||||
Notification=none
|
||||
;;; Upgrade options
|
||||
; commit=20c58daa4be910e554058914633f9a94500bc7e1
|
||||
name="Merge pull request #1 from YunoHost-Apps/helper-in-service"
|
||||
; commit=2e870313227801603a41fd3bfcaafa912dce6d0a
|
||||
name="fix restore.."
|
||||
manifest_arg=domain=domain.td&path=/&is_public=1&port=666&
|
||||
|
|
|
@ -41,7 +41,11 @@
|
|||
{
|
||||
"name": "is_public",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
"default": true,
|
||||
"help": {
|
||||
"en": "This app has a status page meant to be public and a login-protected admin interface. It should be safe to expose publicly.",
|
||||
"fr": "Cette app a une page destinée à être publique et une interface d'admin protégée par mot de passe. Elle peut être exposée publiquement sans problème."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|||
# 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..." --time --weight=1
|
||||
ynh_script_progression --message="Removing $app service integration..." --weight=1
|
||||
yunohost service remove $app
|
||||
fi
|
||||
|
||||
|
|
|
@ -170,8 +170,6 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
mkdir /var/log/$app/
|
||||
|
||||
yunohost service add $app --description="Uptime Kuma, a fancy monitoring tool" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -96,7 +96,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
|||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --time --weight=1
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path" --keep=data/
|
||||
|
|
Loading…
Reference in a new issue