1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jeedom_ynh.git synced 2024-09-03 19:26:26 +02:00

Try ynh_exec_as

This commit is contained in:
Salamandar 2024-03-07 20:05:39 +01:00
parent 451f656daf
commit 4e1c42e429
4 changed files with 6 additions and 24 deletions

23
.vscode/settings.json vendored
View file

@ -1,23 +1,4 @@
{
"python.autoComplete.extraPaths": [
"${workspaceFolder}/sources/poky/bitbake/lib",
"${workspaceFolder}/sources/poky/meta/lib"
],
"python.analysis.extraPaths": [
"${workspaceFolder}/sources/poky/bitbake/lib",
"${workspaceFolder}/sources/poky/meta/lib"
],
"[python]": {
"diffEditor.ignoreTrimWhitespace": false,
"gitlens.codeLens.symbolScopes": [
"!Module"
],
"editor.formatOnType": true,
"editor.wordBasedSuggestions": "off",
"files.trimTrailingWhitespace": false
},
"[shellscript]": {
"files.eol": "\n",
"files.trimTrailingWhitespace": false
}
"bashIde.globPattern": "**/*@(.sh|.inc|.bash|.command)|scripts/*|.vscode/helpers/*",
"bashIde.includeAllWorkspaceSymbols": true
}

View file

@ -54,6 +54,7 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
url = "https://github.com/jeedom/core/archive/refs/tags/4.1.19.tar.gz"
sha256 = "be50f67286d1533c93584f3653d4669b36d649033ad1750342b704f9a824476a"
autoupdate.strategy = "latest_github_tag"
[resources.system_user]

View file

@ -58,7 +58,7 @@ chown "$app:$app" "$install_dir/core/config/common.config.php"
ynh_script_progression --message="Installing Jeedom..."
# Install Jeedom
"php$phpversion" "$install_dir/install/install.php" mode=force
ynh_exec_as "$app" "php$phpversion" "$install_dir/install/install.php" mode=force
# Configure LDAP and the Admin User and access settings
ynh_add_config --template="config.sql" --destination="$install_dir/config.sql"

View file

@ -68,10 +68,10 @@ chown "$app:$app" "$install_dir/core/config/common.config.php"
ynh_script_progression --message="Upgrading Jeedom..."
# Upgrade Jeedom
"php$phpversion" "$install_dir/install/install.php" mode=force
ynh_exec_as "$app" "php$phpversion" "$install_dir/install/install.php" mode=force
# Check
# "php$phpversion" "$install_dir/install/sick.php"
# ynh_exec_as "$app" "php$phpversion" "$install_dir/install/sick.php"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS