Skip to content

Commit f837ae9

Browse files
committed
another attempt .env fix
1 parent 56c953b commit f837ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ps_silverstripe.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
writeln('mkdir to save contents - {{upgrade_path}}');
3232
run(" mkdir -p {{upgrade_path}}");
3333
writeln('Export using .env details');
34-
run("cd {{shared_path}} && sed -i 's/\\r\$//' .env && export $(grep -v '^#' .env | xargs) && mysqldump -u \$SS_DATABASE_USERNAME -p\$SS_DATABASE_PASSWORD -h \$SS_DATABASE_SERVER --column-statistics=0 --no-tablespaces \$SS_DATABASE_NAME > {{upgrade_path}}/mysql57-backup.sql");
34+
run("cd {{shared_path}} && sed 's/\\r\$//' .env > .env.lf && mv .env.lf .env && export $(grep -v '^#' .env | xargs) && mysqldump -u \$SS_DATABASE_USERNAME -p\$SS_DATABASE_PASSWORD -h \$SS_DATABASE_SERVER --column-statistics=0 --no-tablespaces \$SS_DATABASE_NAME > {{upgrade_path}}/mysql57-backup.sql");
3535
writeln('Finished exporting db');
3636

3737
//2) Set up new db fields

0 commit comments

Comments
 (0)