From 852e8c7230ed7b11a9ea80f900c8f6c1586270aa Mon Sep 17 00:00:00 2001 From: LuluGO Date: Mon, 21 Jan 2019 08:36:08 -0500 Subject: [PATCH] added post-refresh hook (#13153) --- .snapcraft/resources/prepareRocketChat | 3 +++ .snapcraft/snap/hooks/post-refresh | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 .snapcraft/snap/hooks/post-refresh diff --git a/.snapcraft/resources/prepareRocketChat b/.snapcraft/resources/prepareRocketChat index cd653b6fcfc..ac352ebda9f 100755 --- a/.snapcraft/resources/prepareRocketChat +++ b/.snapcraft/resources/prepareRocketChat @@ -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 diff --git a/.snapcraft/snap/hooks/post-refresh b/.snapcraft/snap/hooks/post-refresh new file mode 100755 index 00000000000..9a78145595e --- /dev/null +++ b/.snapcraft/snap/hooks/post-refresh @@ -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