1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dont-code_ynh.git synced 2024-09-03 18:26:34 +02:00

Fix document_path not defined

This commit is contained in:
Salamandar 2024-01-04 15:16:51 +01:00
parent 0c6693c313
commit e1dd294edf

View file

@ -21,6 +21,23 @@ ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R "$app:$app" "$install_dir"
#=================================================
# Configure document storage
#=================================================
ynh_script_progression --message="Configuring document storage..." --weight=1
document_path=$data_dir/docs
ynh_app_setting_set --app="$app" --key=document_path --value="$document_path"
document_url=$(append_uri "https://${domain}${path}" "docs")
ynh_app_setting_set --app="$app" --key=document_url --value="$document_url"
# Add the status page
ynh_add_config --template="index.html" --destination="$data_dir/index.html"
chmod -R o-rwx "$data_dir"
chown -R $app:www-data "$data_dir"
#=================================================
# ADD A CONFIGURATION
#=================================================
@ -61,23 +78,6 @@ if [ -n "$public_key" ]; then
chmod o-rwx,gu=r "/etc/sudoers.d/$app-sudoers"
fi
#=================================================
# Configure document storage
#=================================================
ynh_script_progression --message="Configuring document storage..." --weight=1
# Add the status page
ynh_add_config --template="index.html" --destination="$data_dir/index.html"
document_path=$data_dir/docs
ynh_app_setting_set --app="$app" --key=document_path --value="$document_path"
chmod -R o-rwx "$data_dir"
chown -R $app:www-data "$data_dir"
document_url=$(append_uri "https://${domain}${path}" "docs")
ynh_app_setting_set --app="$app" --key=document_url --value="$document_url"
#=================================================
# INSTALL MONGO
#=================================================