diff --git a/check_process b/check_process index 2d3ba6b..def2717 100755 --- a/check_process +++ b/check_process @@ -6,7 +6,6 @@ language="fr" is_public=1 password="pass" - port="666" ; Checks pkg_linter=1 setup_sub_dir=1 diff --git a/conf/.env-sample b/conf/.env-sample index aadf873..e643c51 100644 --- a/conf/.env-sample +++ b/conf/.env-sample @@ -1,7 +1,3 @@ -SHLINK_SERVER_URL=https://__DOMAIN__ -SHLINK_SERVER_API_KEY=__KEY__ -SHLINK_SERVER_NAME=Shlink - DEFAULT_DOMAIN=__DOMAIN__ IS_HTTPS_ENABLED=true AUTO_RESOLVE_TITLES=false diff --git a/manifest.json b/manifest.json index fc7086a..02ac110 100755 --- a/manifest.json +++ b/manifest.json @@ -11,14 +11,13 @@ "upstream": { "license": "MIT", "website": "https://shlink.io/", - "demo": "https://demo.example.com", "userdoc": "https://shlink.io/documentation/", "code": "https://github.com/shlinkio/shlink" }, "license": "MIT", "maintainer": { - "name": "John doe", - "email": "john.doe@example.com" + "name": "", + "email": "" }, "requirements": { "yunohost": ">= 4.3.0" diff --git a/scripts/change_url b/scripts/change_url index 495b7eb..11f740d 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -29,11 +29,6 @@ ynh_script_progression --message="Loading installation settings..." --time --wei # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) -# Add settings here as needed by your application -#db_name=$(ynh_app_setting_get --app=$app --key=db_name) -#db_user=$db_name -#db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) - #================================================= # BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP #================================================= diff --git a/scripts/install b/scripts/install index 8de3c30..6b1e992 100755 --- a/scripts/install +++ b/scripts/install @@ -118,7 +118,7 @@ ynh_add_config --template="../conf/.env-sample" --destination="$final_path/.env" chmod 400 "$final_path/.env" chown $app:$app "$final_path/.env" -#php$phpversion /var/www/shlink/html/bin/cli api-key:generate +$final_path/bin/cli api-key:generate --domain-only=$domain #================================================= # SETUP SSOWAT @@ -131,6 +131,8 @@ then ynh_permission_update --permission="main" --add="visitors" fi +ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --show_tile="false" --protected="true" + #================================================= # RELOAD NGINX #=================================================