mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-19 12:59:48 -07:00
Added downloaded by git check
This commit is contained in:
parent
a1ae454b6e
commit
5bc8dbdc75
3 changed files with 14 additions and 5 deletions
|
@ -15,4 +15,5 @@ del %cd%\msys2\etc\passwd 2> nul
|
||||||
del %cd%\msys2\etc\group 2> nul
|
del %cd%\msys2\etc\group 2> nul
|
||||||
touch /etc/passwd
|
touch /etc/passwd
|
||||||
touch /etc/group
|
touch /etc/group
|
||||||
|
bash /ps/startup_checks.sh
|
||||||
bash /ps/user_setup.sh
|
bash /ps/user_setup.sh
|
||||||
|
|
13
msys2/ps/startup_checks.sh
Normal file
13
msys2/ps/startup_checks.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#Check for an invalid ProxSpace path
|
||||||
|
if ! (echo "$PWD" | grep -Eq ^[a-zA-Z0-9\/\._\-]+$) ; then
|
||||||
|
echo "Error: Install path contains special characters!"
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Using git to download ProxSpace will cause an installation error
|
||||||
|
if [ -d "$PWD/.git" ]; then
|
||||||
|
echo "Error: Do not use Git to download ProxSpace!"
|
||||||
|
sleep infinity
|
||||||
|
fi
|
|
@ -1,9 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if ! (echo "$PWD" | grep -Eq ^[a-zA-Z0-9\/\._\-]+$) ; then
|
|
||||||
echo "Error: Install path contains special characters!"
|
|
||||||
sleep infinity
|
|
||||||
fi
|
|
||||||
|
|
||||||
MKPASSWD_CURRENT="$( mkpasswd -c )"
|
MKPASSWD_CURRENT="$( mkpasswd -c )"
|
||||||
MKGROUP_CURRENT="$( mkgroup -c )"
|
MKGROUP_CURRENT="$( mkgroup -c )"
|
||||||
USER_SID="$( echo $MKPASSWD_CURRENT | gawk -F":" '{ print $5 }' )"
|
USER_SID="$( echo $MKPASSWD_CURRENT | gawk -F":" '{ print $5 }' )"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue