Skip to content

Commit

Permalink
[FIX] Remove new hidden file and fix for .env files for Snap (#15120)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuluGO authored and sampaiodiego committed Aug 8, 2019
1 parent 6745b29 commit a0b2b5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .snapcraft/resources/prepareRocketChat
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ execstack --clear-execstack npm/node_modules/sharp/vendor/lib/librsvg-2.so*

# Having to manually remove because of latest warning
rm -rf npm/node_modules/meteor/konecty_user-presence/node_modules/colors/lib/.colors.js.swp
rm -rf node_modules/node-pre-gyp/node_modules/tar/lib/.mkdir.js.swp

12 changes: 7 additions & 5 deletions .snapcraft/resources/startRocketChat
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ function start_rocketchat {
export OVERWRITE_SETTING_Site_Url=$siteurl
fi

for filename in $SNAP_COMMON/*.env; do
while read env_var; do
export "$env_var"
done < $filename
done
if ls $SNAP_COMMON/*.env >/dev/null 2>&1; then
for filename in $SNAP_COMMON/*.env; do
while read env_var; do
export "$env_var"
done < $filename
done
fi

node $SNAP/main.js
}
Expand Down

0 comments on commit a0b2b5f

Please sign in to comment.