Files
lnx-arch/scripts/curae_setup.sh

33 lines
977 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-05-12 14:39:19 +00:00
# wget https://git.mz.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
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
base_url=https://git.mz.fo/fro/lnx-arch/raw/branch/master
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
chmod 755 curae.sh
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'"