Make ENV file readable only from dokku user. Closes #621

This commit is contained in:
Jose Diaz-Gonzalez committed 2014-11-16 00:26:12 -05:00
1 parent f03c0c5440
commit 913af9b641
1 file changed
+1
+1
View File
@@ -66,6 +66,7 @@ config_write() {
echo -e "$ENV_TEMP" | sed '/^$/d' | sort > $ENV_FILE_TEMP echo -e "$ENV_TEMP" | sed '/^$/d' | sort > $ENV_FILE_TEMP
if ! cmp -s $ENV_FILE $ENV_FILE_TEMP; then if ! cmp -s $ENV_FILE $ENV_FILE_TEMP; then
cp -f $ENV_FILE_TEMP $ENV_FILE cp -f $ENV_FILE_TEMP $ENV_FILE
chmod 600 $ENV_FILE
config_restart_app $APP config_restart_app $APP
fi fi
rm -f $ENV_FILE_TEMP rm -f $ENV_FILE_TEMP