Skip to content

Commit 64febcf

Browse files
committedAug 30, 2020
[general] change install scripts
1 parent d4ee27f commit 64febcf

File tree

7 files changed

+30
-2
lines changed

7 files changed

+30
-2
lines changed
 

‎install.sh

-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ cd "$ScriptDir"
77
cp -vfasT "$ScriptDir/config/" "$HOME/"
88

99
mkdir -p "$HOME/temporary/"{downloads,other/desktop}
10-
11-
./other/x11_input_daemon/build.sh

‎other/install.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail; shopt -s nullglob
3+
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
4+
5+
Folders=(container locale mime tmpfiles tty x11_input_daemon)
6+
for Folder in "${Folders[@]}"
7+
do
8+
"$Folder/install.sh" || true
9+
done

‎other/locale/install.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail; shopt -s nullglob
3+
[ "$(whoami)" = root ] || exec sudo -p "$(printf "This command needs to run as root.\nPassword: ")" $0 "$@"
4+
35
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
46

57
cp "en_SE" "/usr/share/i18n/locales"

‎other/tmpfiles/install.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail; shopt -s nullglob
3+
[ "$(whoami)" = root ] || exec sudo -p "$(printf "This command needs to run as root.\nPassword: ")" $0 "$@"
4+
5+
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
6+
7+
systemctl mask tmp.mount
8+
9+
mkdir -p /etc/tmpfiles.d
10+
cp tmp.conf /etc/tmpfiles.d

‎other/tmpfiles/tmp.conf

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
D! /tmp 1777 root root 2d
2+
D /var/tmp 1777 root root 10d

‎other/tty/install.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail; shopt -s nullglob
3+
[ "$(whoami)" = root ] || exec sudo -p "$(printf "This command needs to run as root.\nPassword: ")" $0 "$@"
4+
35
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
46

57
mkdir -p /usr/local/share/kbd/keymaps

‎other/x11_input_daemon/install.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail; shopt -s nullglob
3+
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
4+
5+
./build.sh

0 commit comments

Comments
 (0)
Please sign in to comment.