1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/codimd_ynh.git synced 2024-09-03 18:16:32 +02:00
* Update config.json.example

* Cleaning up
This commit is contained in:
Éric Gaspar 2021-06-21 15:15:03 +02:00 committed by GitHub
parent 7cbaf481a1
commit cd70816833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 7 deletions

View file

@ -3,7 +3,6 @@
"protocolUseSSL": true,
"domain": "__DOMAIN__",
"port": "__PORT__",
"urlPath": "__PATH__",
"loglevel": "info",
"useCDN": false,
"allowGravatar": false,

View file

@ -129,8 +129,8 @@ ynh_script_progression --message="Modifying a config file..."
path=${path_url:1}
ynh_add_config --template="../conf/config.json.example" --destination="$final_path/config.json"
ynh_add_config --template="../conf/.sequelizerc.example" --destination="$final_path/.sequelizerc"
chmod 600 $final_path/config.json
ynh_add_config --template="../conf/.sequelizerc.example" --destination="$final_path/.sequelizerc"
chmod 600 $final_path/.sequelizerc
chmod +x $final_path/app.js

View file

@ -84,9 +84,6 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
# Install Yarn
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
#=================================================
# RESTORE THE POSTGRESQL DATABASE
#=================================================

View file

@ -133,11 +133,11 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Building CodiMD... (this will take some time and resources!)" --weight=16
pushd "$final_path" || ynh_die
pushd "$final_path"
ynh_use_nodejs
ynh_exec_warn_less bin/setup
ynh_exec_warn_less ynh_npm run build
popd || ynh_die
popd
fi
#=================================================