/ curae ➔ ct
renamed curae to ct (caretaker), plus some bashrc tidying.
This commit is contained in:
31
scripts/ctsetup.sh
Executable file
31
scripts/ctsetup.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# klevstul
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# how to download this script (as root):
|
||||
#
|
||||
# cd /tmp
|
||||
# wget https://gt.op.fo/fro/lnx-arch/raw/branch/master/scripts/ctsetup.sh
|
||||
# cat ctsetup.sh # verify the downloaded script (IMPORTANT!)
|
||||
# chmod 755 ctsetup.sh # make the script executable
|
||||
# ./ctsetup.sh # run the script
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
echo "<< ctsetup.sh >>"
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "error: run as 'root'"
|
||||
exit
|
||||
fi
|
||||
|
||||
base_url=https://gt.op.fo/fro/lnx-arch/raw/branch/master
|
||||
src_url=${base_url}/scripts/ct.sh
|
||||
home_dir=/usr/local/bin
|
||||
|
||||
mkdir -p ${home_dir}
|
||||
wget -q ${src_url} -O ${home_dir}/ct.sh
|
||||
chmod 755 ${home_dir}/ct.sh
|
||||
|
||||
ln -s ${home_dir}/ct.sh /usr/local/bin/ct
|
||||
|
||||
echo "a fresh copy of ct.sh is now located at '${home_dir}/ct.sh'"
|
||||
Reference in New Issue
Block a user