mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
Update install
This commit is contained in:
parent
4d65f2175d
commit
1309bc430d
1 changed files with 13 additions and 9 deletions
|
@ -55,13 +55,13 @@ db_user=$db_name
|
||||||
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||||
ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name
|
ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name
|
||||||
|
|
||||||
#=================================================
|
# #=================================================
|
||||||
# CREATE DEDICATED USER
|
# # CREATE DEDICATED USER
|
||||||
#=================================================
|
# #=================================================
|
||||||
ynh_script_progression --message="Configuring system user..." --weight=1
|
# ynh_script_progression --message="Configuring system user..." --weight=1
|
||||||
|
|
||||||
# Create a system user
|
# # Create a system user
|
||||||
ynh_system_user_create --username=$app --home_dir=$final_path
|
# ynh_system_user_create --username=$app --home_dir=$final_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
@ -111,9 +111,13 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# # Set permissions to app files
|
||||||
chown -R $app:$app $final_path
|
# chown -R $app:$app $final_path
|
||||||
chmod 600 $final_path/.env
|
# chmod 600 $final_path/.env
|
||||||
|
|
||||||
|
chown -R root:root $final_path
|
||||||
|
chown -R www-data:www-data $final_path/writable
|
||||||
|
chown -R www-data:www-data $final_path/public/media
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Add table
Reference in a new issue