mirror of
https://github.com/YunoHost-Apps/tiddlywiki_ynh.git
synced 2024-09-03 20:26:34 +02:00
Fix
This commit is contained in:
parent
a3ac1dabb1
commit
fffb626c7f
4 changed files with 4 additions and 15 deletions
|
@ -1,4 +1,3 @@
|
|||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||
location / {
|
||||
|
||||
# Force usage of https
|
||||
|
|
|
@ -31,16 +31,6 @@
|
|||
},
|
||||
"example": "domain.org"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"type": "path",
|
||||
"ask": {
|
||||
"en": "Choose a path for TiddlyWiki",
|
||||
"fr": "Choisissez un chemin pour TiddlyWiki"
|
||||
},
|
||||
"example": "/",
|
||||
"default": "/"
|
||||
},
|
||||
{
|
||||
"name": "is_public",
|
||||
"type": "boolean",
|
||||
|
|
|
@ -24,7 +24,7 @@ ynh_abort_if_errors
|
|||
#=================================================
|
||||
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path_url=$YNH_APP_ARG_PATH
|
||||
path_url="/"
|
||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
@ -95,10 +95,10 @@ ynh_system_user_create --username=$app --home_dir=$final_path
|
|||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
ynh_script_progression --message="tiddlywiki..." --weight=2
|
||||
ynh_script_progression --message="Configuring TiddlyWiki..." --weight=2
|
||||
|
||||
pushd $final_path
|
||||
$nodejs_path/node $final_path/tiddlywiki monwiki --init server
|
||||
$nodejs_path/node tiddlywiki monwiki --init server
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -54,7 +54,7 @@ ynh_remove_nodejs
|
|||
ynh_print_info --message="Removing app main directory..."
|
||||
|
||||
# Remove the app directory securely
|
||||
ynh_secure_remove --file="$final_path"
|
||||
ynh_secure_remove --file=$final_path
|
||||
|
||||
#=================================================
|
||||
# REMOVE NGINX CONFIGURATION
|
||||
|
|
Loading…
Reference in a new issue