From deb9873333a992b4ce7911f846a0b10e4ede0ce8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 5 Jun 2018 00:13:03 +0000 Subject: [PATCH] update symlink to system config --- usr/share/install_helper.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index 5162f7e..1c301f7 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -221,6 +221,13 @@ if [ ! -e "$my_config" ]; then cat usr/share/$my_app.tpl.yml >> "$my_config" fi +my_config_link="/etc/$my_app/$my_app.yml" +if [ ! -e "$my_config_link" ]; then + echo "sudo ln -sf '$my_config' '$my_config_link'" + #sudo mkdir -p /etc/$my_app + sudo ln -sf "$my_config" "$my_config_link" +fi + my_config="$HOME/.config/$my_app/$my_app.yml" mkdir -p "$(dirname $my_config)" if [ ! -e "$my_config" ]; then @@ -238,13 +245,6 @@ if [ ! -e "$my_config" ]; then cat usr/share/$my_app.tpl.yml >> "$my_config" fi -my_config_link="/etc/$my_app/$my_app.yml" -if [ ! -e "$my_config_link" ]; then - echo "sudo ln -sf '$my_config' '$my_config_link'" - #sudo mkdir -p /etc/$my_app - sudo ln -sf "$my_config" "$my_config_link" -fi - echo "sudo chown -R $my_user '$TELEBIT_PATH' '/etc/$my_app'" sudo chown -R $my_user "$TELEBIT_PATH" "/etc/$my_app"