1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kiwiirc_ynh.git synced 2024-09-03 19:35:59 +02:00
This commit is contained in:
ericgaspar 2021-09-24 07:43:11 +02:00
parent 70c5250f4b
commit 02645c06a0
8 changed files with 14 additions and 15 deletions

View file

@ -1,6 +1,6 @@
A versatile web based messenger using IRC A versatile web based messenger using IRC
###Features: ### Features:
- For single networks, bouncer hosts, or a personal generic IRC client that remembers your networks - For single networks, bouncer hosts, or a personal generic IRC client that remembers your networks
- Works out of the box with a default IRC network - or use your own - Works out of the box with a default IRC network - or use your own

View file

@ -3,8 +3,8 @@
"id": "kiwiirc", "id": "kiwiirc",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "A versatile web based messenger using IRC", "en": "Versatile web based messenger using IRC",
"fr": "Une messagerie Web polyvalente utilisant IRC" "fr": "Messagerie Web polyvalente utilisant IRC"
}, },
"version": "1.5.0~ynh1", "version": "1.5.0~ynh1",
"url": "https://github.com/kiwiirc/kiwiirc", "url": "https://github.com/kiwiirc/kiwiirc",
@ -31,8 +31,7 @@
"install" : [ "install" : [
{ {
"name": "domain", "name": "domain",
"type": "domain", "type": "domain"
"example": "domain.org"
}, },
{ {
"name": "path", "name": "path",

View file

@ -56,4 +56,4 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_print_info --message="Backup script completed for KiwiIRC. (YunoHost will then actually copy those files to the archive)." ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."

View file

@ -33,7 +33,7 @@ port=$(ynh_app_setting_get --app=$app --key=port)
#================================================= #=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#================================================= #=================================================
ynh_script_progression --message="Backing up KiwiIRC before changing its URL (may take a while)..." --weight=1 ynh_script_progression --message="Backing up the app before changing its URL (may take a while)..." --weight=1
# Backup the current version of the app # Backup the current version of the app
ynh_backup_before_upgrade ynh_backup_before_upgrade
@ -103,4 +103,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Change of URL completed for KiwiIRC" --last ynh_script_progression --message="Change of URL completed for $app" --last

View file

@ -133,7 +133,7 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=1 ynh_script_progression --message="Configuring permissions..." --weight=1
# Make app public if necessary or protect it # Make app public if necessary or protect it
if [ $is_public -eq 1 ] if [ $is_public -eq 1 ]
@ -152,4 +152,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Installation of KiwiIRC completed" --last ynh_script_progression --message="Installation of $app completed" --last

View file

@ -43,7 +43,7 @@ ynh_remove_systemd_config
#================================================= #=================================================
# REMOVE APP MAIN DIR # REMOVE APP MAIN DIR
#================================================= #=================================================
ynh_script_progression --message="Removing KiwiIRC main directory..." --weight=6 ynh_script_progression --message="Removing the app main directory..." --weight=6
# Remove the app directory securely # Remove the app directory securely
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"
@ -72,4 +72,4 @@ ynh_system_user_delete --username=$app
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Removal of KiwiIRC completed" --last ynh_script_progression --message="Removal of $app completed" --last

View file

@ -56,7 +56,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
#================================================= #=================================================
# RESTORE THE APP MAIN DIR # RESTORE THE APP MAIN DIR
#================================================= #=================================================
ynh_script_progression --message="Restoring KiwiIRC main directory..." --weight=60 ynh_script_progression --message="Restoring $app main directory..." --weight=60
ynh_restore_file --origin_path="$final_path" ynh_restore_file --origin_path="$final_path"
@ -97,4 +97,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Restoration completed for KiwiIRC" --last ynh_script_progression --message="Restoration completed for $app" --last

View file

@ -127,4 +127,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Upgrade of KiwiIRC completed" --last ynh_script_progression --message="Upgrade of $app completed" --last