update symlink to system config

This commit is contained in:
AJ ONeal 2018-06-05 00:13:03 +00:00
parent 50a8536bff
commit deb9873333
1 changed files with 7 additions and 7 deletions

View File

@ -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"