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

This commit is contained in:
Jose Diaz-Gonzalez
2014-11-16 00:26:12 -05:00
parent f03c0c5440
commit 913af9b641

View File

@@ -66,6 +66,7 @@ config_write() {
echo -e "$ENV_TEMP" | sed '/^$/d' | sort > $ENV_FILE_TEMP
if ! cmp -s $ENV_FILE $ENV_FILE_TEMP; then
cp -f $ENV_FILE_TEMP $ENV_FILE
chmod 600 $ENV_FILE
config_restart_app $APP
fi
rm -f $ENV_FILE_TEMP