diff --git a/README.md b/README.md index 004f44e..28f2922 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview Glowing Bear is a web frontend for the WeeChat IRC client and strives to be a modern interface. It relies on WeeChat to do all the heavy lifting and then provides some nice features on top of that, like embedding images, videos, and other content. The best part, however, is that you can use it from any modern internet device -- whether it's a computer, tablet, or smart phone -- and all your stuff is there, wherever you are. You don't have to deal with the messy technical details, and all you need to have installed is a browser or our app. -**Shipped version:** 0.8.0 +**Shipped version:** 0.9.0 ## Important points to read before installing @@ -33,9 +33,9 @@ Glowing Bear is a web frontend for the WeeChat IRC client and strives to be a mo #### Multi-user support -* Is LDAP supported? No, not relevant. -* Is HTTP auth supported? Yes. -* Can the app be used by multiple users? No. +* Is LDAP supported? **No** not relevant. +* Is HTTP auth supported? **Yes** +* Can the app be used by multiple users? **No** #### Supported architectures @@ -51,8 +51,7 @@ Glowing Bear is a web frontend for the WeeChat IRC client and strives to be a mo --- -Developer info ----------------- +## Developer info Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/glowingbear_ynh/tree/testing). diff --git a/conf/app.src b/conf/app.src index 11877f7..d498c41 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/glowing-bear/glowing-bear/archive/0.8.0.tar.gz -SOURCE_SUM=181cd04ac7f6a45ff92d51e7b5baa314f42850bc13b194bb970e31ac44facf5c +SOURCE_URL=https://github.com/glowing-bear/glowing-bear/archive/0.9.0.tar.gz +SOURCE_SUM=9ff5370b4d384b1d7fff77ed5c46014cb2733f14f5032096f4acfdf6a4d0cf63 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index ed6d38c..14660cb 100755 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "A web client for WeeChat.", "fr": "Un client Web pour WeeChat." }, - "version": "0.8.0~ynh1", + "version": "0.9.0~ynh1", "url": "https://www.glowing-bear.org", "license": "AGPL-3.0", "maintainer": { @@ -14,7 +14,7 @@ "email": "jodeko@riseup.net" }, "requirements": { - "yunohost": ">= 3.5" + "yunohost": ">= 3.8.1" }, "multi_instance": true, "services": [ diff --git a/scripts/backup b/scripts/backup index 8331cfc..25ed946 100755 --- a/scripts/backup +++ b/scripts/backup @@ -51,4 +51,4 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" # END OF SCRIPT #================================================= -ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." +ynh_print_info --message="Backup script completed for Glowing Bear. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/install b/scripts/install index 73bf386..87b1adc 100755 --- a/scripts/install +++ b/scripts/install @@ -63,9 +63,9 @@ ynh_setup_source --dest_dir="$final_path" #================================================= # NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Configuring nginx web server..." +ynh_script_progression --message="Configuring NGINX web server..." -# Create a dedicated nginx config +# Create a dedicated NGINX config ynh_add_nginx_config #================================================= @@ -86,14 +86,15 @@ ynh_script_progression --message="Configuring SSOwat..." # Make app public if necessary if [ $is_public -eq 1 ] then - # unprotected_uris allows SSO credentials to be passed anyway. - ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" + # Everyone can access the app. + # The "main" permission is automatically created before the install script. + ynh_permission_update --permission "main" --add "visitors" fi #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload @@ -101,4 +102,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Installation of $app completed" +ynh_script_progression --message="Installation of Glowing Bear completed" diff --git a/scripts/remove b/scripts/remove index 673bff1..a6c62a2 100755 --- a/scripts/remove +++ b/scripts/remove @@ -24,7 +24,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= # REMOVE APP MAIN DIR #================================================= -ynh_script_progression --message="Removing app main directory..." +ynh_script_progression --message="Removing Glowing Bear main directory..." # Remove the app directory securely ynh_secure_remove --file="$final_path" @@ -32,9 +32,9 @@ ynh_secure_remove --file="$final_path" #================================================= # REMOVE NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Removing nginx web server configuration..." +ynh_script_progression --message="Removing NGINX web server configuration..." -# Remove the dedicated nginx config +# Remove the dedicated NGINX config ynh_remove_nginx_config #================================================= @@ -43,4 +43,4 @@ ynh_remove_nginx_config # END OF SCRIPT #================================================= -ynh_script_progression --message="Removal of $app completed" +ynh_script_progression --message="Removal of Glowing Bear completed" diff --git a/scripts/restore b/scripts/restore index ea97ae6..26bf4f8 100755 --- a/scripts/restore +++ b/scripts/restore @@ -46,14 +46,14 @@ test ! -d $final_path \ #================================================= # RESTORE THE NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the nginx configuration..." +ynh_script_progression --message="Restoring the NGINX configuration..." ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # RESTORE THE APP MAIN DIR #================================================= -ynh_script_progression --message="Restoring the app main directory..." +ynh_script_progression --message="Restoring Glowing Bear main directory..." ynh_restore_file --origin_path="$final_path" @@ -70,7 +70,7 @@ chown -R www-data:www-data $final_path #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload @@ -78,4 +78,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Restoration completed for $app" +ynh_script_progression --message="Restoration completed for Glowing Bear" diff --git a/scripts/upgrade b/scripts/upgrade index b8838bf..602b572 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,7 +51,7 @@ fi #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." +ynh_script_progression --message="Backing up Glowing Bear before upgrading (may take a while)..." # Backup the current version of the app ynh_backup_before_upgrade @@ -85,9 +85,9 @@ fi #================================================= # NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Upgrading nginx web server configuration..." +ynh_script_progression --message="Upgrading NGINX web server configuration..." -# Create a dedicated nginx config +# Create a dedicated NGINX config ynh_add_nginx_config #================================================= @@ -100,22 +100,10 @@ ynh_script_progression --message="Securing files and directories..." # Set permissions on app files chown -R www-data:www-data $final_path -#================================================= -# SETUP SSOWAT -#================================================= -ynh_script_progression --message="Upgrading SSOwat configuration..." - -# Make app public if necessary -if [ $is_public -eq 1 ] -then - # unprotected_uris allows SSO credentials to be passed anyway - ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" -fi - #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload @@ -123,4 +111,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Upgrade of $app completed" +ynh_script_progression --message="Upgrade of Glowing Bear completed"