blob: 592d5cfe2ddaac71a719989c421cbf24cf456ecc (
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
|
CONFIG_TEMPLATE='################################
# default config file for carl #
################################
# the name of the carl theme:
theme = "default"
# you can include multiple ics files:
[[ical]]
file = "carl.ics"
#[[ical]]
#file = "birthdays.ics"
#stylenames = ['\'FGPurple\'']
#weight = 3
'
post_install() {
# Check if the user home exists
for userhome in /home/*; do
if [ -d "$userhome" ]; then
# Cria um arquivo na home de cada usuário
if [ ! -f "$userhome/.config/carl/config.toml" ]; then
mkdir -p "$userhome/.config/carl"
cd "$userhome/.config/carl" || return 1; echo "folder not found in $userhome"
touch "config.toml"
echo "$CONFIG_TEMPLATE" > "config.toml"
chown -R "${userhome#\/home\/}":"${userhome#\/home\/}" "$userhome/.config/carl"
fi
fi
done
}
|