1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mobilizon_ynh.git synced 2024-09-03 19:46:19 +02:00
This commit is contained in:
yalh76 2021-04-28 02:05:01 +02:00
parent a71f177219
commit 8ea9b947ba
2 changed files with 9 additions and 4 deletions

View file

@ -166,6 +166,8 @@ pushd $final_path/$app/js
sudo -u $app env PATH=$PATH NODE_BUILD_MEMORY=1024 yarn run build
popd
ynh_secure_remove --file="$final_path/$app/js"
ynh_script_progression --message="Building Elixir application (this is going to take a while...)"
pushd $final_path/$app
sudo -u "$app" MIX_ENV=prod mix local.hex --force
@ -194,13 +196,13 @@ pushd $final_path/$app
sudo -u "$app" MIX_ENV=prod mix mobilizon.users.new "$admin_email" --admin --password "$password"
popd
ynh_secure_remove --file="$final_path/.cache"
ynh_store_file_checksum --file="$config"
chmod 400 "$config"
chown $app:$app "$config"
ynh_secure_remove --file="$final_path/.cache"
#=================================================
# SETUP SYSTEMD
#=================================================

View file

@ -229,8 +229,11 @@ pushd $final_path/$app/js
sudo -u $app env PATH=$PATH yarn install
ynh_script_progression --message="Building NodeJS application (this is going to take a while...)"
sudo -u $app env PATH=$PATH NODE_BUILD_MEMORY=1024 yarn run build
sudo -u $app env PATH=$PATH yarn cache clean --all
popd
ynh_secure_remove --file="$final_path/$app/js"
ynh_script_progression --message="Building Elixir application (this is going to take a while...)"
pushd $final_path/$app
sudo -u "$app" MIX_ENV=prod mix local.hex --force
@ -240,6 +243,8 @@ pushd $final_path/$app
sudo -u "$app" MIX_ENV=prod mix ecto.migrate
popd
ynh_secure_remove --file="$final_path/.cache"
#=================================================
# RUN APP MIGRATIONS
#=================================================
@ -264,8 +269,6 @@ ynh_store_file_checksum --file="$config"
chmod 400 "$config"
chown $app:$app "$config"
ynh_secure_remove --file="$final_path/.cache"
#=================================================
# SETUP SYSTEMD
#=================================================