mirror of
https://github.com/YunoHost-Apps/plume_ynh.git
synced 2024-09-03 20:15:54 +02:00
Fix missing .env
This commit is contained in:
parent
6af3413a8a
commit
eba8fda191
2 changed files with 20 additions and 20 deletions
|
@ -149,6 +149,16 @@ ynh_add_nginx_config
|
|||
mkdir -p "/var/log/$app"
|
||||
chown -R "$app":"$app" "/var/log/$app"
|
||||
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding a config file..."
|
||||
|
||||
ynh_add_config --template="../conf/.env" --destination="$final_path/$app/.env"
|
||||
|
||||
chmod 400 "$final_path/$app/.env"
|
||||
chown $app:$app "$final_path/$app/.env"
|
||||
|
||||
#=================================================
|
||||
# MAKE SETUP
|
||||
#=================================================
|
||||
|
@ -177,16 +187,6 @@ pushd $final_path/$app
|
|||
sudo -u "$app" env PATH=$PATH plm search init -p $final_path/$app
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding a config file..."
|
||||
|
||||
ynh_add_config --template="../conf/.env" --destination="$final_path/$app/.env"
|
||||
|
||||
chmod 400 "$final_path/$app/.env"
|
||||
chown $app:$app "$final_path/$app/.env"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
#=================================================
|
||||
|
|
|
@ -145,6 +145,16 @@ ynh_script_progression --message="Creating log folder..."
|
|||
mkdir -p "/var/log/$app"
|
||||
chown -R "$app":"$app" "/var/log/$app"
|
||||
|
||||
#=================================================
|
||||
# UPDATE A CONFIG FILE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Updating a config file..."
|
||||
|
||||
ynh_add_config --template="../conf/.env" --destination="$final_path/$app/.env"
|
||||
|
||||
chmod 400 "$final_path/$app/.env"
|
||||
chown $app:$app "$final_path/$app/.env"
|
||||
|
||||
#=================================================
|
||||
# MAKE SETUP
|
||||
#=================================================
|
||||
|
@ -156,16 +166,6 @@ pushd $final_path/$app
|
|||
sudo -u "$app" env PATH=$PATH plm migration run
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# UPDATE A CONFIG FILE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Updating a config file..."
|
||||
|
||||
ynh_add_config --template="../conf/.env" --destination="$final_path/$app/.env"
|
||||
|
||||
chmod 400 "$final_path/$app/.env"
|
||||
chown $app:$app "$final_path/$app/.env"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue