diff --git a/37693034-5783b3d6-2c93-11e8-80ea-bd78438dcd51.png b/37693034-5783b3d6-2c93-11e8-80ea-bd78438dcd51.png deleted file mode 100644 index 47f8773..0000000 Binary files a/37693034-5783b3d6-2c93-11e8-80ea-bd78438dcd51.png and /dev/null differ diff --git a/check_process b/check_process index e5c8250..5648c26 100644 --- a/check_process +++ b/check_process @@ -16,10 +16,6 @@ setup_private=1 setup_public=1 upgrade=1 - # 2.14.0 - upgrade=1 from_commit=36d8f49e08958c19f99eda858f83a64e98be7844 - # 2.17.0~ynh1 - upgrade=1 from_commit=4b497cf6445fc515070265721f40ceb816864bf1 # 2.17.0~ynh2 upgrade=1 from_commit=d03eaae18c5b99f7933ae18378d5567fc46389f5 backup_restore=1 @@ -29,9 +25,5 @@ Email=anmol@datamol.org Notification=change ;;; Upgrade options - ; commit=36d8f49e08958c19f99eda858f83a64e98be7844 - name=2.14.0 - ; commit=4b497cf6445fc515070265721f40ceb816864bf1 - name=2.17.0~ynh1 ; commit=d03eaae18c5b99f7933ae18378d5567fc46389f5 name=2.17.0~ynh2 diff --git a/conf/app.src b/conf/app.src index 1fc95d7..3632089 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,6 +1,6 @@ -SOURCE_URL=https://github.com/monicahq/monica/archive/refs/tags/v3.1.3.zip -SOURCE_SUM=bd1f47d89b84e9f14723663d0d917ac9cc9cd8b5dbe31237d6ec6532500e031c +SOURCE_URL=https://github.com/monicahq/monica/archive/refs/tags/v3.5.0.zip +SOURCE_SUM=59818fcbc96b5bdd687d8eec2a5c728e9e95c48e0d0ebcaa4eb8b8b76eb93799 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true -SOURCE_FILENAME=v3.1.3.zip +SOURCE_FILENAME=monica.zip diff --git a/conf/nginx.conf b/conf/nginx.conf index 3358362..b3aace4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,11 +4,6 @@ location ^~ __PATH__/ { # Path to source alias __FINALPATH__/public/; - # Force usage of https - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - index index.php; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file diff --git a/issue_template.md b/issue_template.md deleted file mode 100644 index 5d6c499..0000000 --- a/issue_template.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -name: Bug report -about: Create a report to help us debug, it would be nice to fill the template as much as you can to help us, help you and help us all. - ---- - -**How to post a meaningful bug report** -1. *Read this whole template first.* -2. *Determine if you are on the right place:* - - *If you were performing an action on the app from the webadmin or the CLI (install, update, backup, restore, change_url...), you are on the right place!* - - *Otherwise, the issue may be due to Monica itself. Refer to its documentation or repository for help.* - - *If you have a doubt, post here, we will figure it out together.* -3. *Delete the italic comments as you write over them below, and remove this guide.* ---- - -**Describe the bug** -*A clear and concise description of what the bug is.* - -**Versions** -- Hardware: *VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / ...* -- YunoHost version: x.x.x -- I have access to my server: *Through SSH | through the webadmin | direct access via keyboard / screen | ...* -- Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?: *no / yes* - - If yes, please explain: -- Using, or trying to install package version/branch: -- If upgrading, current package version: *can be found in the admin, or with `yunohost app info $app_id`* - -**To Reproduce** -*Steps to reproduce the behavior.* -- *If you performed a command from the CLI, the command itself is enough. For example:* - ```sh - sudo yunohost app install monica - ``` -- *If you used the webadmin, please perform the equivalent command from the CLI first.* -- *If the error occurs in your browser, explain what you did:* - 1. *Go to '...'* - 2. *Click on '...'* - 3. *Scroll down to '...'* - 4. *See error* - -**Expected behavior** -*A clear and concise description of what you expected to happen. You can remove this section if the command above is enough to understand your intent.* - -**Logs** -*After a failed command, YunoHost makes the log available to you, but also to others, thanks to `yunohost log display [log name] --share`. The actual command, with the correct log name, is displayed at the end of the failed attempt in the CLI. Execute it and copy here the share link it outputs.* -*If applicable and useful, add screenshots to help explain your problem.* diff --git a/manifest.json b/manifest.json index b6d85df..acb5dca 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Personal Relationship Manager", "fr": "Gestionnaire de relations personnelles" }, - "version": "3.1.3~ynh1", + "version": "3.5.0~ynh1", "url": "https://monicahq.com", "license": "GPL-3.0", "maintainer": { @@ -15,7 +15,7 @@ "url": "http://github.com/rndmh3ro/monica_ynh" }, "requirements": { - "yunohost": ">= 4.2.0" + "yunohost": ">= 4.3.0" }, "multi_instance": true, "services": [ @@ -27,8 +27,7 @@ "install" : [ { "name": "domain", - "type": "domain", - "example": "example.com" + "type": "domain" }, { "name": "path", @@ -38,8 +37,7 @@ }, { "name": "admin", - "type": "user", - "example": "johndoe" + "type": "user" }, { "name": "is_public", diff --git a/pull_request_template.md b/pull_request_template.md deleted file mode 100644 index cfb87c4..0000000 --- a/pull_request_template.md +++ /dev/null @@ -1,18 +0,0 @@ -## Problem -- *Description of why you made this PR* - -## Solution -- *And how do you fix that problem* - -## PR Status -- [ ] Code finished. -- [ ] Tested with Package_check. -- [ ] Fix or enhancement tested. -- [ ] Upgrade from last version tested. -- [ ] Can be reviewed and tested. - -## Package_check results ---- -*If you have access to [App Continuous Integration for packagers](https://yunohost.org/#/packaging_apps_ci) you can provide a link to the package_check results like below, replacing '-NUM-' in this link by the PR number and USERNAME by your username on the ci-apps-dev. Or you provide a screenshot or a pastebin of the results* - -[![Build Status](https://ci-apps-dev.yunohost.org/jenkins/job/monica_ynh%20PR-NUM-%20(USERNAME)/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/monica_ynh%20PR-NUM-%20(USERNAME)/) diff --git a/scripts/_common.sh b/scripts/_common.sh index 840a8ba..a2dec86 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,12 +5,13 @@ #================================================= # dependencies used by the app -pkg_dependencies="redis-server" YNH_COMPOSER_VERSION="2.0.11" + YNH_PHP_VERSION="7.4" + NODEJS_VERSION=14 -extra_php_dependencies="php${YNH_PHP_VERSION}-bcmath php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-gmp php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-redis php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip \ +pkg_dependencies="php${YNH_PHP_VERSION}-bcmath php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-gmp php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-redis php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip \ php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-opcache" #================================================= diff --git a/scripts/install b/scripts/install index 478b7ce..437d53c 100644 --- a/scripts/install +++ b/scripts/install @@ -33,6 +33,7 @@ dav_support=$YNH_APP_ARG_DAV_SUPPORT signup=$YNH_APP_ARG_SIGNUP two_factor=$YNH_APP_ARG_TWO_FACTOR version=$(curl -s https://api.github.com/repos/monicahq/monica/releases/latest | grep 'tag_name' | cut -d\" -f4) +phpversion=$YNH_PHP_VERSION app=$YNH_APP_INSTANCE_NAME @@ -61,6 +62,7 @@ ynh_app_setting_set --app=$app --key=dav_support --value=$dav_support ynh_app_setting_set --app=$app --key=signup --value=$signup ynh_app_setting_set --app=$app --key=two_factor --value=$two_factor ynh_app_setting_set --app=$app --key=version --value=$version +ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion #================================================= # STANDARD MODIFICATIONS @@ -124,8 +126,7 @@ ynh_add_nginx_config ynh_script_progression --message="Configuring PHP-FPM..." # Create a dedicated PHP-FPM config -ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencies" -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) +ynh_add_fpm_config --usage=low --footprint=low #================================================= # SPECIFIC SETUP @@ -167,7 +168,7 @@ else twof="No" fi -ynh_add_config --template="../conf/.env" --destination="$config" +ynh_add_config --template="../conf/.env" --destination="$final_path/.env" #================================================= # INSTALL COMPOSER DEPENDENCIES @@ -206,8 +207,8 @@ popd update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION} -chmod 400 "$config" -chown $app:$app "$config" +chmod 400 "$final_path/.env" +chown $app:$app "$final_path/.env" #================================================= # INSTALL THE CRON FILE diff --git a/scripts/remove b/scripts/remove index 5fba8f1..f0c04b5 100755 --- a/scripts/remove +++ b/scripts/remove @@ -31,14 +31,6 @@ ynh_script_progression --message="Removing the MySQL database..." # Remove a database if it exists, along with the associated user ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name -#================================================= -# REMOVE DEPENDENCIES -#================================================= -ynh_script_progression --message="Removing dependencies..." - -# Remove metapackage and its dependencies -ynh_remove_app_dependencies - #================================================= # REMOVE APP MAIN DIR #================================================= @@ -63,6 +55,14 @@ ynh_script_progression --message="Removing PHP-FPM configuration..." # Remove the dedicated PHP-FPM config ynh_remove_fpm_config +#================================================= +# REMOVE DEPENDENCIES +#================================================= +ynh_script_progression --message="Removing dependencies..." + +# Remove metapackage and its dependencies +ynh_remove_app_dependencies + #================================================= # SPECIFIC REMOVE #================================================= diff --git a/scripts/restore b/scripts/restore index 215ec0f..b7e26af 100644 --- a/scripts/restore +++ b/scripts/restore @@ -39,10 +39,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= ynh_script_progression --message="Validating restoration parameters..." -ynh_webpath_available --domain=$domain --path_url=$path_url \ - || ynh_die --message="Path not available: ${domain}${path_url}" -test ! -d $final_path \ - || ynh_die --message="There is already a directory: $final_path " +test ! -d $final_path || ynh_die --message="There is already a directory: $final_path " #================================================= # STANDARD RESTORATION STEPS @@ -79,9 +76,6 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" -# Recreate a dedicated PHP-FPM config -ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencies" - #================================================= # SPECIFIC RESTORATION #=================================================