mirror of
https://github.com/YunoHost-Apps/codimd_ynh.git
synced 2024-09-03 18:16:32 +02:00
Upgrade Nodejs
This commit is contained in:
parent
226d60e48e
commit
ac27fff382
3 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@
|
||||||
"addGoogleAnalytics": false
|
"addGoogleAnalytics": false
|
||||||
},
|
},
|
||||||
"db": {
|
"db": {
|
||||||
"username": "__DB_NAME__",
|
"username": "__DB_USER__",
|
||||||
"password": "__DB_PWD__",
|
"password": "__DB_PWD__",
|
||||||
"database": "__DB_NAME__",
|
"database": "__DB_NAME__",
|
||||||
"host": "localhost",
|
"host": "localhost",
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
pkg_dependencies="postgresql apt-transport-https libssl-dev"
|
pkg_dependencies="postgresql apt-transport-https libssl-dev"
|
||||||
|
|
||||||
nodejs_version=11
|
nodejs_version=14
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -83,10 +83,10 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
ynh_script_progression --message="Creating a PostgreSQL database..." --weight=2
|
ynh_script_progression --message="Creating a PostgreSQL database..." --weight=2
|
||||||
|
|
||||||
db_name=$(ynh_sanitize_dbid --db_name=$app)
|
db_name=$(ynh_sanitize_dbid --db_name=$app)
|
||||||
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
db_user=$db_name
|
||||||
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||||
ynh_psql_test_if_first_run
|
ynh_psql_test_if_first_run
|
||||||
ynh_psql_setup_db --db_user=$db_name --db_name=$db_name
|
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
|
Loading…
Add table
Reference in a new issue