2018-11-21 03:13:56 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Get Path to script folder
|
|
|
|
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
|
|
|
# Fix path in case of symlinks
|
|
|
|
DIR=$(cd "$DIR" && pwd -P)
|
|
|
|
|
2018-11-22 04:41:51 +00:00
|
|
|
if [ ! -L "/usr/local/bin/cosmic-user" ]; then
|
|
|
|
ln -s "${DIR}/cosmic-user" "/usr/local/bin/cosmic-user"
|
|
|
|
fi
|
|
|
|
|
2018-11-23 00:06:05 +00:00
|
|
|
if [ ! -L "/usr/local/bin/cosmic-rss" ]; then
|
|
|
|
ln -s "${DIR}/cosmic-rss" "/usr/local/bin/cosmic-rss"
|
|
|
|
fi
|
|
|
|
|
2018-11-23 03:03:28 +00:00
|
|
|
if [ ! -L "/usr/local/bin/cosmic-web" ]; then
|
|
|
|
ln -s "${DIR}/cosmic-web" "/usr/local/bin/cosmic-web"
|
|
|
|
fi
|
|
|
|
|
2018-11-22 04:41:51 +00:00
|
|
|
if [ ! -L "/usr/local/bin/cosmic-ship" ]; then
|
|
|
|
ln -s "${DIR}/cosmic-ship" "/usr/local/bin/cosmic-ship"
|
2018-11-21 03:13:56 +00:00
|
|
|
fi
|
|
|
|
|
2018-11-24 15:59:55 +00:00
|
|
|
if [ ! -L "/usr/local/bin/cosmic-roster" ]; then
|
|
|
|
ln -s "${DIR}/cosmic-roster" "/usr/local/bin/cosmic-roster"
|
|
|
|
fi
|
|
|
|
|
2018-11-21 03:50:36 +00:00
|
|
|
if [ ! -L "/usr/local/bin/log" ]; then
|
|
|
|
ln -s "${DIR}/log" "/usr/local/bin/log"
|
|
|
|
fi
|
|
|
|
|
2018-11-21 03:13:56 +00:00
|
|
|
if [ ! -L "/etc/welcomemail.tmpl" ]; then
|
|
|
|
ln -s "${DIR}/welcomemail.tmpl" "/etc/welcomemail.tmpl"
|
|
|
|
fi
|
2018-11-22 05:00:39 +00:00
|
|
|
|
|
|
|
if [ ! -L "/etc/newship.tmpl" ]; then
|
|
|
|
ln -s "${DIR}/newship.tmpl" "/etc/newship.tmpl"
|
|
|
|
fi
|
2018-11-23 02:32:28 +00:00
|
|
|
|
|
|
|
if [ ! -L "/etc/motd" ]; then
|
|
|
|
ln -s "${DIR}/motd" "/etc/motd"
|
|
|
|
fi
|