mirror of
https://github.com/YunoHost-Apps/shlink_ynh.git
synced 2024-09-03 20:16:22 +02:00
Fix
This commit is contained in:
parent
f74fd3a87f
commit
25f2056577
5 changed files with 5 additions and 14 deletions
|
@ -6,7 +6,6 @@
|
|||
language="fr"
|
||||
is_public=1
|
||||
password="pass"
|
||||
port="666"
|
||||
; Checks
|
||||
pkg_linter=1
|
||||
setup_sub_dir=1
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue