Merge pull request #287 from CodeShakingSheep/fix-.env-permissions

Fix .env permissions (marked in health check)
This commit is contained in:
eric_G
2024-08-04 18:35:28 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ ynh_script_progression --message="Modifying a config file..." --weight=1
ynh_add_config --template="default.env" --destination="$install_dir/.env" ynh_add_config --template="default.env" --destination="$install_dir/.env"
chmod 400 "$install_dir/.env" chmod 600 "$install_dir/.env"
chown $app:$app "$install_dir/.env" chown $app:$app "$install_dir/.env"
#================================================= #=================================================
+1 -1
View File
@@ -69,7 +69,7 @@ then
ynh_add_config --template="default.env" --destination="$install_dir/.env" ynh_add_config --template="default.env" --destination="$install_dir/.env"
chmod 400 "$install_dir/.env" chmod 600 "$install_dir/.env"
chown $app:$app "$install_dir/.env" chown $app:$app "$install_dir/.env"
fi fi