+ initial files
This commit is contained in:
31
scripts/curae_setup.sh
Normal file
31
scripts/curae_setup.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# klevstul
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# how to download this script (as root):
|
||||
#
|
||||
# cd /tmp
|
||||
# wget tinyurl.com/fk-arc3 # same as `wget https://git.mz.fo/fro/lnx-arch/raw/branch/master/scripts/curae_setup.sh`
|
||||
# cat fk-arc3 # verify the downloaded script (IMPORTANT!)
|
||||
# chmod 755 fk-arc3 # make the script executable
|
||||
# ./fk-arc3 # run the script
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
echo "<< genesis.sh >>"
|
||||
|
||||
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
|
||||
home_dir=/home/.curae
|
||||
this_file_name=fk-arc3
|
||||
|
||||
mkdir -p ${home_dir}
|
||||
cd ${home_dir}
|
||||
wget -q ${src_url} -O ${home_dir}/curae.sh
|
||||
chmod 755 curae.sh
|
||||
|
||||
echo "a fresh copy of curae.sh is now located at '${home_dir}/curae.sh'"
|
||||
Reference in New Issue
Block a user