forked from mirrored-repos/manjaro-tools
[util-yaml] update if routines
This commit is contained in:
parent
18ce522cab
commit
18b93d69db
1 changed files with 17 additions and 13 deletions
|
@ -76,13 +76,15 @@ write_services_conf(){
|
||||||
msg2 "Writing %s ..." "${conf##*/}"
|
msg2 "Writing %s ..." "${conf##*/}"
|
||||||
echo '---' > "$conf"
|
echo '---' > "$conf"
|
||||||
echo '' >> "$conf"
|
echo '' >> "$conf"
|
||||||
|
if [ ! ${#enable_systemd[@]} -eq 0 ]; then
|
||||||
echo 'services:' >> "$conf"
|
echo 'services:' >> "$conf"
|
||||||
for s in ${enable_systemd[@]}; do
|
for s in ${enable_systemd[@]}; do
|
||||||
echo " - name: $s" >> "$conf"
|
echo " - name: $s" >> "$conf"
|
||||||
echo ' mandatory: false' >> "$conf"
|
echo ' mandatory: false' >> "$conf"
|
||||||
echo '' >> "$conf"
|
echo '' >> "$conf"
|
||||||
done
|
done
|
||||||
if [ ! ${enable_systemd_timers[@]} -eq 0 ]; then
|
fi
|
||||||
|
if [ ! ${#enable_systemd_timers[@]} -eq 0 ]; then
|
||||||
echo 'timers:' >> "$conf"
|
echo 'timers:' >> "$conf"
|
||||||
for s in ${enable_systemd_timers[@]}; do
|
for s in ${enable_systemd_timers[@]}; do
|
||||||
echo " - name: $s" >> "$conf"
|
echo " - name: $s" >> "$conf"
|
||||||
|
@ -94,12 +96,14 @@ write_services_conf(){
|
||||||
echo ' - name: "graphical"' >> "$conf"
|
echo ' - name: "graphical"' >> "$conf"
|
||||||
echo ' mandatory: true' >> "$conf"
|
echo ' mandatory: true' >> "$conf"
|
||||||
echo '' >> "$conf"
|
echo '' >> "$conf"
|
||||||
|
if [ ! ${#disable_systemd[@]} -eq 0 ]; then
|
||||||
echo 'disable:' >> "$conf"
|
echo 'disable:' >> "$conf"
|
||||||
for s in ${disable_systemd[@]}; do
|
for s in ${disable_systemd[@]}; do
|
||||||
echo " - name: $s" >> "$conf"
|
echo " - name: $s" >> "$conf"
|
||||||
echo ' mandatory: false' >> "$conf"
|
echo ' mandatory: false' >> "$conf"
|
||||||
echo '' >> "$conf"
|
echo '' >> "$conf"
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
write_displaymanager_conf(){
|
write_displaymanager_conf(){
|
||||||
|
|
Loading…
Reference in a new issue