mirror of
https://github.com/YunoHost-Apps/digiscreen_ynh.git
synced 2024-09-03 18:26:15 +02:00
cleaning
This commit is contained in:
parent
4a91309b65
commit
74d0cbe2cd
3 changed files with 9 additions and 7 deletions
|
@ -24,8 +24,11 @@ fund = "https://opencollective.com/ladigitale"
|
|||
yunohost = ">= 11.2"
|
||||
architectures = "all"
|
||||
multi_instance = true
|
||||
|
||||
ldap = "not_relevant"
|
||||
|
||||
sso = "not_relevant"
|
||||
|
||||
disk = "100M"
|
||||
ram.build = "500M"
|
||||
ram.runtime = "100M"
|
||||
|
|
|
@ -16,8 +16,8 @@ _digiscreen_build() {
|
|||
echo "VUE_APP_GOOGLE_API_KEY=$apikey_google_youtube" >> .env
|
||||
|
||||
ynh_use_nodejs
|
||||
"$ynh_npm" install
|
||||
"$ynh_npm" run build
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm run build
|
||||
popd
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,10 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir/sources"
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R "$app:www-data" "$install_dir"
|
||||
|
||||
_digiscreen_build
|
||||
|
||||
mv "$install_dir/sources/dist" "$install_dir/www"
|
||||
|
@ -40,11 +44,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1
|
|||
|
||||
ynh_add_nginx_config
|
||||
|
||||
#=================================================
|
||||
# PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring PHP-FPM..." --weight=1
|
||||
|
||||
ynh_add_fpm_config
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue