Files
lnx-arch/scripts/curae_setup.sh

33 lines
987 B
Bash
Raw Normal View History

2024-04-30 07:40:24 -05:00
#!/usr/bin/env bash
# klevstul
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# how to download this script (as root):
#
# cd /tmp
2024-11-10 19:22:42 -05:00
# wget https://gt.op.fo/fro/lnx-arch/raw/branch/master/scripts/curae_setup.sh
2024-05-12 14:39:19 +00:00
# cat curae_setup.sh # verify the downloaded script (IMPORTANT!)
# chmod 755 curae_setup.sh # make the script executable
# ./curae_setup.sh # run the script
2024-04-30 07:40:24 -05:00
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2024-05-12 14:39:19 +00:00
echo "<< curae_setup.sh >>"
2024-04-30 07:40:24 -05:00
if [ "$EUID" -ne 0 ]
then echo "error: run as 'root'"
exit
fi
2024-11-10 19:22:42 -05:00
base_url=https://gt.op.fo/fro/lnx-arch/raw/branch/master
2024-04-30 07:40:24 -05:00
src_url=${base_url}/scripts/curae.sh
2024-05-12 14:39:19 +00:00
home_dir=/usr/local/bin
2024-04-30 07:40:24 -05:00
this_file_name=fk-arc3
mkdir -p ${home_dir}
wget -q ${src_url} -O ${home_dir}/curae.sh
2024-06-06 09:00:26 -05:00
chmod 755 ${home_dir}/curae.sh
2024-04-30 07:40:24 -05:00
2024-04-30 22:10:10 -05:00
ln -s ${home_dir}/curae.sh /usr/local/bin/curae
2024-04-30 07:40:24 -05:00
echo "a fresh copy of curae.sh is now located at '${home_dir}/curae.sh'"