blob: 150d01b729691cfce020d74e1067a2f727ab8ffd (
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
37
|
pre_install() {
# 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
mkdir -p /home/chromium/.extensions/aw-snap-reloader
}
post_install() {
# Update systemd sysusers
systemd-sysusers
# 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
}
|