blob: aa33b66c72d694f5ff08a532dbb22697ded118df (
plain)
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
36
|
pre_install() {
# Update systemd sysusers
systemd-sysusers
# Create Home folder
mkdir -p /home/chromium
# Create a first sample of Autostart Url
echo -e "https://www.archlinux.org/\n" > /home/chromium/chromium-autostart-url.txt
# Create the extensions folders
mkdir -p /home/chromium/.extensions/disable-x-frame-option
}
post_install() {
# Fix permissions
chown -R chromium:chromium /home/chromium
# Enable the xlogin service
systemctl enable xlogin@chromium
# Print additional useful informations
echo -e "==> [INFO] For comodity, the file '/home/chromium/chromium-autostart-url.txt' has been created for you. That file although can be located also on:"
echo -e "==> [INFO] - '/boot/chromium-autostart-url.txt'"
echo -e "==> [INFO] - '/home/chromium/chromium-autostart-url.txt'"
echo -e "==> [INFO] Order is mandatory! The first that matches, is the first that wins."
echo -e "==> [INFO] Please restart in order to start Chromium Fullscreen."
}
post_upgrade() {
# Update systemd sysusers
systemd-sysusers
# Fix permissions
chown -R chromium:chromium /home/chromium
}
|