mirror of
https://github.com/YunoHost-Apps/nodered_ynh.git
synced 2024-09-03 19:46:25 +02:00
2.0.1
This commit is contained in:
parent
eadcff91ad
commit
8271dc7bf7
6 changed files with 16 additions and 34 deletions
|
@ -1,15 +1,10 @@
|
|||
# See here for more information
|
||||
# https://github.com/YunoHost/package_check#syntax-check_process-file
|
||||
|
||||
# Move this file from check_process.default to check_process when you have filled it.
|
||||
|
||||
;; Test complet
|
||||
; Manifest
|
||||
domain="domain.tld" (DOMAIN)
|
||||
path="/path" (PATH)
|
||||
admin="john" (USER)
|
||||
domain="domain.tld"
|
||||
path="/path"
|
||||
admin="john"
|
||||
password="pass"
|
||||
port="666" (PORT)
|
||||
port="666"
|
||||
; Checks
|
||||
pkg_linter=1
|
||||
setup_sub_dir=1
|
||||
|
@ -18,8 +13,8 @@
|
|||
setup_private=1
|
||||
setup_public=0 #Considering the sensitive actions this app can do, I prefer to have it private
|
||||
upgrade=1
|
||||
upgrade=0 from_commit=567fc9435804add272fa4ae48a7cf1ec5f173d2d
|
||||
upgrade=1 from_commit=453b13703bb418a7da33ed4f3e96a486b365d865
|
||||
upgrade=1 from_commit=2b01dad6ce2214a07f8b5dd63ee040c34268204c
|
||||
backup_restore=1
|
||||
multi_instance=1
|
||||
port_already_use=1
|
||||
|
@ -28,9 +23,9 @@
|
|||
Email=
|
||||
Notification=none
|
||||
;;; Upgrade options
|
||||
; commit=CommitHash
|
||||
name=Name and date of the commit.
|
||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&password=pass&port=666&
|
||||
; commit=453b13703bb418a7da33ed4f3e96a486b365d865
|
||||
name=v1.2.9 2021-02-20
|
||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&password=pass&port=666&
|
||||
; commit=2b01dad6ce2214a07f8b5dd63ee040c34268204c
|
||||
name=Merge pull request #26 from YunoHost-Apps/testing
|
||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&password=pass&port=666&
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://github.com/node-red/node-red/releases/download/1.3.5/node-red-1.3.5.zip
|
||||
SOURCE_SUM=44cda9032f1658fb23a9927fe37f518b778433a3091b7dc5d78cda9250234720
|
||||
SOURCE_URL=https://github.com/node-red/node-red/archive/refs/tags/2.0.1.zip
|
||||
SOURCE_SUM=2944c378033240ce4286aa58c1f75797bd04d69b2c40bb30b07e30fb6ce88b58
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Flow-based programming for the Internet of Things",
|
||||
"fr": "Programmation par flux de données pour l'Internet des objets"
|
||||
},
|
||||
"version": "1.3.5~ynh2",
|
||||
"version": "2.0.1~ynh1",
|
||||
"url": "https://nodered.org",
|
||||
"upstream": {
|
||||
"license": "Apache-2.0",
|
||||
|
@ -50,7 +50,7 @@
|
|||
"default": true,
|
||||
"help": {
|
||||
"en": "Should the dashboard and the nodes endpoints be publicly accessible?",
|
||||
"fr": "Le tableau de bord et les routes des nodes doivent-ils être publiquement accessibles?"
|
||||
"fr": "Le tableau de bord et les routes des nodes doivent-ils être publiquement accessibles ?"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
@ -17,16 +17,3 @@ nodejs_version=16
|
|||
#=================================================
|
||||
# FUTURE OFFICIAL HELPERS
|
||||
#=================================================
|
||||
|
||||
# Execute a command as another user
|
||||
# usage: exec_as USER COMMAND [ARG ...]
|
||||
exec_as() {
|
||||
local USER=$1
|
||||
shift 1
|
||||
|
||||
if [[ $USER = $(whoami) ]]; then
|
||||
eval "$@"
|
||||
else
|
||||
sudo -u "$USER" "$@"
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -97,8 +97,8 @@ ynh_use_nodejs
|
|||
chown -R $app: "$final_path"
|
||||
|
||||
pushd $final_path
|
||||
ynh_exec_warn_less exec_as $app $ynh_node_load_PATH $ynh_npm install --production
|
||||
ynh_exec_warn_less exec_as $app $ynh_node_load_PATH $ynh_npm install node-red-dashboard
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install node-red-dashboard
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -133,8 +133,8 @@ ynh_use_nodejs
|
|||
chown -R $app: "$final_path"
|
||||
|
||||
pushd $final_path
|
||||
ynh_exec_warn_less exec_as $app $ynh_node_load_PATH $ynh_npm install --production
|
||||
ynh_exec_warn_less exec_as $app $ynh_node_load_PATH $ynh_npm install node-red-dashboard
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install node-red-dashboard
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue