diff --git a/manifest.json b/manifest.json index 5524f3f..c7a1fb2 100644 --- a/manifest.json +++ b/manifest.json @@ -7,7 +7,7 @@ "fr": "Édition de SVG en ligne fonctionnent avec tout navigateur moderne." }, "url": "https://github.com/SVG-Edit/svgedit", - "version": "2.8.1~ynh2", + "version": "2.8.1~ynh3", "license": "MIT", "maintainer": { "name": "ljf", @@ -52,6 +52,10 @@ "en": "Is it a public application?", "fr": "Est-ce une application publique ?" }, + "help": { + "en": "If enabled, SVG-edit 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, SVG-edit sera accessible aux personnes n’ayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin." + }, "default": true } ] diff --git a/scripts/_common.sh b/scripts/_common.sh index 0033cd0..672b052 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -116,19 +116,19 @@ to_logs() { } ynh_read_json () { - sudo python3 -c "import sys, json;print(json.load(open('$1'))['$2'])" + python3 -c "import sys, json;print(json.load(open('$1'))['$2'])" } ynh_configure () { local TEMPLATE=$1 local DEST=$2 - type j2 2>/dev/null || sudo pip install j2cli + type j2 2>/dev/null || pip install j2cli j2 "${PKG_DIR}/conf/$TEMPLATE.j2" > "${PKG_DIR}/conf/$TEMPLATE" ynh_backup_if_checksum_is_different "$DEST" - sudo cp "${PKG_DIR}/conf/$TEMPLATE" "$DEST" + cp "${PKG_DIR}/conf/$TEMPLATE" "$DEST" ynh_store_file_checksum "$DEST" - sudo chown root: "$DEST" + chown root: "$DEST" } @@ -139,7 +139,7 @@ ynh_configure () { # # To force an upgrade, even if the package is up to date, # you have to set the variable YNH_FORCE_UPGRADE before. -# example: sudo YNH_FORCE_UPGRADE=1 yunohost app upgrade MyApp +# example: YNH_FORCE_UPGRADE=1 yunohost app upgrade MyApp # # usage: ynh_abort_if_up_to_date ynh_abort_if_up_to_date () {