diff --git a/manifest.json b/manifest.json index 7585a5e..24149da 100644 --- a/manifest.json +++ b/manifest.json @@ -18,7 +18,7 @@ "email": "jean-baptiste@holcroft.fr" }], "requirements": { - "yunohost": ">= 4.0.0" + "yunohost": ">= 4.1.0" }, "multi_instance": true, "services": [ @@ -29,29 +29,17 @@ { "name": "domain", "type": "domain", - "ask": { - "en": "Choose a domain for Weblate", - "fr": "Choisissez un domaine pour Weblate" - }, "example": "domain.org" }, { "name": "path", "type": "path", - "ask": { - "en": "Choose a path for Weblate", - "fr": "Choisissez un chemin pour Weblate" - }, "example": "/weblate", "default": "/weblate" }, { "name": "is_public", "type": "boolean", - "ask": { - "en": "Should Weblate be public accessible?", - "fr": "Weblate doit-il être accessible au public ?" - }, "help": { "en": "Any YunoHost user and anonymous people from the web will be able to access the application", "fr": "Tout utilisateur YunoHost et les personnes anonymes pourront accéder à l'application" @@ -61,19 +49,11 @@ { "name": "admin", "type": "user", - "ask": { - "en": "Choose an admin user for Weblate", - "fr": "Choisissez l'administrateur pour Weblate" - }, "example": "johndoe" }, { "name": "password", "type": "password", - "ask": { - "en": "Set the administrator password", - "fr": "Définissez le mot de passe administrateur" - }, "example": "Choose a password" }, { diff --git a/scripts/install b/scripts/install index 15c23ca..35ce788 100755 --- a/scripts/install +++ b/scripts/install @@ -246,10 +246,10 @@ ynh_add_systemd_config --service="$app-celery" --template="celery-weblate.servic #================================================= # Set permissions to app files -chown -R "$app": "$final_path" - mkdir -p "$final_path/avatar-cache" -chown -R "$app": "$final_path/avatar-cache" +chown -R "$app": "$final_path" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" #================================================= # SETUP LOGROTATE diff --git a/scripts/restore b/scripts/restore index 7be3bff..0ef83c8 100755 --- a/scripts/restore +++ b/scripts/restore @@ -70,10 +70,10 @@ ynh_system_user_create --username=$app --home_dir="$final_path" --use_shell #================================================= # Restore permissions on app files -chown -R "$app": "$final_path" - mkdir -p "$final_path/avatar-cache" -chown -R "$app": "$final_path/avatar-cache" +chown -R "$app": "$final_path" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 3506e41..bea21fc 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -289,10 +289,10 @@ yunohost service add "$app-celery" --log "/var/log/$app/weblate-celery-w1.log" #================================================= # Set right permissions for curl installation -chown -R "$app": "$final_path" - mkdir -p "$final_path/avatar-cache" -chown -R "$app": "$final_path/avatar-cache" +chown -R "$app": "$final_path" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" #================================================= # START SYSTEMD SERVICES