added post-refresh hook (#13153)

pull/13211/head
LuluGO 6 years ago committed by Rodrigo Nascimento
parent fd2a814fcd
commit 852e8c7230
  1. 3
      .snapcraft/resources/prepareRocketChat
  2. 16
      .snapcraft/snap/hooks/post-refresh

@ -25,3 +25,6 @@ fi
# sharp needs execution stack removed - https://forum.snapcraft.io/t/snap-and-executable-stacks/1812
ls -l npm/node_modules/sharp/vendor
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

@ -0,0 +1,16 @@
#!/bin/bash
# Initialize the CADDY_URL to a default
snapctl set caddy=disable
# Initialize the PORT to a default
snapctl set port=3000
# Initialize the MONGO_URL to a default
snapctl set mongo-url=mongodb://localhost:27017/parties
# Initialize the MONGO_OPLOG_URL to a default
snapctl set mongo-oplog-url=mongodb://localhost:27017/local
# Initialize the protocol to a default
snapctl set https=disable
Loading…
Cancel
Save