From 4ae88b44470a486ebbffad291a573876178b1b19 Mon Sep 17 00:00:00 2001 From: vahid-dan Date: Thu, 31 Aug 2023 08:52:34 -0500 Subject: [PATCH 1/2] Update initializer --- gateways/base/initializer.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gateways/base/initializer.sh b/gateways/base/initializer.sh index 354b0be..f34da1b 100755 --- a/gateways/base/initializer.sh +++ b/gateways/base/initializer.sh @@ -70,4 +70,7 @@ else fi # Create symbolic link for module toggler -sudo ln -s /home/ubuntu/miscellaneous/gateways/base/module-toggler.sh /usr/local/bin/toggler || true +if [ ! -f "/usr/local/bin/toggler" ]; then + # Create symlink + sudo ln -s "$general_apps_dir/gateways/base/module-toggler.sh" "/usr/local/bin/toggler" +fi \ No newline at end of file From 671162cb4bfd6e17a0ab84491834505b361a986f Mon Sep 17 00:00:00 2001 From: vahid-dan Date: Thu, 31 Aug 2023 08:53:38 -0500 Subject: [PATCH 2/2] Update initializer --- gateways/base/initializer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateways/base/initializer.sh b/gateways/base/initializer.sh index f34da1b..f1f6d15 100755 --- a/gateways/base/initializer.sh +++ b/gateways/base/initializer.sh @@ -73,4 +73,4 @@ fi if [ ! -f "/usr/local/bin/toggler" ]; then # Create symlink sudo ln -s "$general_apps_dir/gateways/base/module-toggler.sh" "/usr/local/bin/toggler" -fi \ No newline at end of file +fi