use arguments or variables
This commit is contained in:
parent
c3f133b211
commit
129101ac2e
12
install.sh
12
install.sh
@ -7,15 +7,17 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
useradd --shell /bin/sh --system --home-dir /usr/local/upfast upfast ||
|
UFDIR=${1:=/srv/upfast}
|
||||||
|
USER=${1:=upfast}
|
||||||
|
useradd --shell /bin/sh --system --home-dir $UFDIR $UFUSER ||
|
||||||
exit 1
|
exit 1
|
||||||
mkdir -p /usr/local/upfast || # dodge copying of skeletons
|
mkdir -p "$UFDIR" || # dodge copying of skeletons
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
chown upfast:upfast /usr/local/upfast
|
chown "$UFUSER:$UFUSER" "$UFDIR"
|
||||||
chmod 700 /usr/local/upfast
|
chmod 700 "$UFDIR"
|
||||||
|
|
||||||
su upfast -c'
|
su "$UFUSER" -c"
|
||||||
cd
|
cd
|
||||||
git clone https://code.cronyakatsuki.xyz/tlast/upfast . ||
|
git clone https://code.cronyakatsuki.xyz/tlast/upfast . ||
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user