We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bba1bf commit d39ef3eCopy full SHA for d39ef3e
2 files changed
scripts/systemctl/install.sh
@@ -0,0 +1,21 @@
1
+#!/usr/bin/env bash
2
+
3
+# sudo check
4
+if [ "$EUID" -ne 0 ]
5
+ then echo "Please run as root"
6
+ exit
7
+fi
8
9
+if command -v python3 &>/dev/null; then
10
+ echo "Python3 is already installed"
11
+else
12
+ echo "Installing Python3"
13
+ pacman -Syu
14
+ pacman -S python3
15
16
17
+if [ -f /bin/systemctl ]; then
18
+ echo "installing systemctl -> /bin/systemctl"
19
+ cat systemctl > /bin/systemctl
20
+ echo "Done..."
21
0 commit comments