mirror of
https://github.com/YunoHost-Apps/mobilizon_ynh.git
synced 2024-09-03 19:46:19 +02:00
Cleanup
This commit is contained in:
parent
a71f177219
commit
8ea9b947ba
2 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue