mirror of
https://github.com/YunoHost-Apps/codimd_ynh.git
synced 2024-09-03 18:16:32 +02:00
parent
7cbaf481a1
commit
cd70816833
4 changed files with 3 additions and 7 deletions
|
@ -3,7 +3,6 @@
|
||||||
"protocolUseSSL": true,
|
"protocolUseSSL": true,
|
||||||
"domain": "__DOMAIN__",
|
"domain": "__DOMAIN__",
|
||||||
"port": "__PORT__",
|
"port": "__PORT__",
|
||||||
"urlPath": "__PATH__",
|
|
||||||
"loglevel": "info",
|
"loglevel": "info",
|
||||||
"useCDN": false,
|
"useCDN": false,
|
||||||
"allowGravatar": false,
|
"allowGravatar": false,
|
||||||
|
|
|
@ -129,8 +129,8 @@ ynh_script_progression --message="Modifying a config file..."
|
||||||
|
|
||||||
path=${path_url:1}
|
path=${path_url:1}
|
||||||
ynh_add_config --template="../conf/config.json.example" --destination="$final_path/config.json"
|
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
|
chmod 600 $final_path/config.json
|
||||||
|
ynh_add_config --template="../conf/.sequelizerc.example" --destination="$final_path/.sequelizerc"
|
||||||
chmod 600 $final_path/.sequelizerc
|
chmod 600 $final_path/.sequelizerc
|
||||||
|
|
||||||
chmod +x $final_path/app.js
|
chmod +x $final_path/app.js
|
||||||
|
|
|
@ -84,9 +84,6 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
# Install Nodejs
|
# Install Nodejs
|
||||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
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
|
# RESTORE THE POSTGRESQL DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -133,11 +133,11 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Building CodiMD... (this will take some time and resources!)" --weight=16
|
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_use_nodejs
|
||||||
ynh_exec_warn_less bin/setup
|
ynh_exec_warn_less bin/setup
|
||||||
ynh_exec_warn_less ynh_npm run build
|
ynh_exec_warn_less ynh_npm run build
|
||||||
popd || ynh_die
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue