1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tiddlywiki_ynh.git synced 2024-09-03 20:26:34 +02:00
This commit is contained in:
ericgaspar 2021-02-16 21:56:01 +01:00
parent a3ac1dabb1
commit fffb626c7f
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 4 additions and 15 deletions

View file

@ -1,4 +1,3 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location / {
# Force usage of https

View file

@ -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",

View file

@ -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
#=================================================

View file

@ -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