mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
Fix
This commit is contained in:
parent
f4ef8064c1
commit
63d2733c77
4 changed files with 15 additions and 25 deletions
|
@ -1,12 +1,12 @@
|
|||
;; Test complet
|
||||
; Manifest
|
||||
domain="domain.tld" (DOMAIN)
|
||||
path="/path" (PATH)
|
||||
admin="john" (USER)
|
||||
domain="domain.tld"
|
||||
path="/path"
|
||||
admin="john"
|
||||
language="fr"
|
||||
is_public=1 (PUBLIC|public=1|private=0)
|
||||
is_public=1
|
||||
password="pass"
|
||||
port="666" (PORT)
|
||||
port="666"
|
||||
; Checks
|
||||
pkg_linter=1
|
||||
setup_sub_dir=1
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"url": "https://github.com/Yunohost-Apps/nodebb_ynh"
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">> 4.1.7"
|
||||
"yunohost": ">> 4.2.4"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"services": [
|
||||
|
|
|
@ -21,20 +21,6 @@ nodejs_version=14
|
|||
# FUTURE OFFICIAL HELPERS
|
||||
#=================================================
|
||||
|
||||
# Execute a command as another user
|
||||
# usage: ynh_exec_as USER COMMAND [ARG ...]
|
||||
ynh_exec_as() {
|
||||
local USER=$1
|
||||
shift 1
|
||||
|
||||
if [[ $USER = $(whoami) ]]; then
|
||||
eval "$@"
|
||||
else
|
||||
sudo -u "$USER" "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# Send an email to inform the administrator
|
||||
#
|
||||
# usage: ynh_send_readme_to_admin app_message [recipients]
|
||||
|
|
|
@ -111,6 +111,10 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
@ -148,9 +152,9 @@ pushd $final_path
|
|||
#npm install nodebb-plugin-dbsearch --save-prod
|
||||
#ynh_exec_as $app env $ynh_node_load_PATH
|
||||
#./nodebb build -l
|
||||
#exec_as $app ./nodebb setup -l > $install_log
|
||||
#exec_as $app npm install nodebb-plugin-dbsearch --save-prod
|
||||
#exec_as $app ./nodebb build -l
|
||||
#ynh_exec_as $app ./nodebb setup -l > $install_log
|
||||
#ynh_exec_as $app npm install nodebb-plugin-dbsearch --save-prod
|
||||
#ynh_exec_as $app ./nodebb build -l
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
@ -207,10 +211,10 @@ $mail_content
|
|||
|
||||
If you are facing any problem or want to improve this app, please open a new issue here: https://github.com/YunoHost-Apps/nodebb_ynh"
|
||||
|
||||
ynh_send_readme_to_admin "$message"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Installation of $app completed" --last
|
||||
|
||||
ynh_send_readme_to_admin "$message"
|
||||
|
|
Loading…
Reference in a new issue