|
|
@ -353,16 +353,16 @@ function miaou_configfiles() { |
|
|
|
} |
|
|
|
|
|
|
|
function opt_link() { |
|
|
|
if [[ $MIAOU_BASEDIR != '/opt/miaou' ]]; then |
|
|
|
if [[ -L '/opt/miaou' && -d '/opt/miaou' && $(readlink /opt/miaou) == "$MIAOU_BASEDIR" ]]; then |
|
|
|
echo "symbolic link /opt/miaou already set up!" |
|
|
|
if [[ $MIAOU_BASEDIR != '/opt/miaou-server' ]]; then |
|
|
|
if [[ -L '/opt/miaou-server' && -d '/opt/miaou-server' && $(readlink /opt/miaou-server) == "$MIAOU_BASEDIR" ]]; then |
|
|
|
echo "symbolic link /opt/miaou-server already set up!" |
|
|
|
else |
|
|
|
sudo rm -f /opt/miaou |
|
|
|
sudo ln -s "$MIAOU_BASEDIR" /opt/miaou |
|
|
|
echo "symbolic link /opt/miaou successfully defined!" |
|
|
|
sudo rm -f /opt/miaou-server |
|
|
|
sudo ln -s "$MIAOU_BASEDIR" /opt/miaou-server |
|
|
|
echo "symbolic link /opt/miaou-server successfully defined!" |
|
|
|
fi |
|
|
|
else |
|
|
|
echo "real path /opt/miaou already set up!" |
|
|
|
echo "real path /opt/miaou-server already set up!" |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|