-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·36 lines (24 loc) · 869 Bytes
/
install.sh
File metadata and controls
executable file
·36 lines (24 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
set -e
if [ "$(id -u)" != 0 ]; then
echo "root access required to install!"
exit 1
fi
[ ! $(which make) ] && echo "make need to be installed" && exit 1
[ ! $(which curl) ] && echo "curl need to be installed" && exit 1
[ ! $(which git) ] && echo "git need to be installed" && exit 1
echo "Info: squirrel will be installed on your system, don't use it because it can break your system packages!"
if [ -e ./stock-packaging ]; then
cd stock-packaging
git pull
make install
else
git clone https://github.com/stock-linux/stock-packaging
cd stock-packaging
make install
fi
cd ..
curl -L -o config-install.sh https://github.com/stock-linux/installer/raw/main/src/config-install.sh
curl -L -o post-install.sh https://github.com/stock-linux/installer/raw/main/src/post-install.sh
chmod +x config-install.sh
./config-install.sh