Files
lnx-arch/scripts/curae_setup.sh
2024-11-10 19:22:42 -05:00

33 lines
987 B
Bash
Executable File

#!/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/curae_setup.sh
# cat curae_setup.sh # verify the downloaded script (IMPORTANT!)
# chmod 755 curae_setup.sh # make the script executable
# ./curae_setup.sh # run the script
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
echo "<< curae_setup.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/curae.sh
home_dir=/usr/local/bin
this_file_name=fk-arc3
mkdir -p ${home_dir}
wget -q ${src_url} -O ${home_dir}/curae.sh
chmod 755 ${home_dir}/curae.sh
ln -s ${home_dir}/curae.sh /usr/local/bin/curae
echo "a fresh copy of curae.sh is now located at '${home_dir}/curae.sh'"