fix: do not force fetching of the DOKKU_SCALE file

This commit is contained in:
Jose Diaz-Gonzalez
2021-04-17 00:30:48 -04:00
parent c6d99722eb
commit 67317f88df

View File

@@ -533,9 +533,7 @@ func injectDokkuScale(appName string, image string) error {
os.Remove(dokkuScaleFile)
}
if err := common.CopyFromImage(appName, image, "DOKKU_SCALE", dokkuScaleFile); err != nil {
return err
}
common.CopyFromImage(appName, image, "DOKKU_SCALE", dokkuScaleFile)
if !common.FileExists(dokkuScaleFile) {
return nil