diff --git a/gateways/base/initializer.sh b/gateways/base/initializer.sh index 354b0be..f1f6d15 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