archlinux: fix bash syntax errors
This commit is contained in:
parent
8584290295
commit
98b4f1f265
@ -58,7 +58,7 @@ pre_upgrade() {
|
|||||||
|
|
||||||
configure_notification-daemon() {
|
configure_notification-daemon() {
|
||||||
# Enable autostart of notification-daemon when installed
|
# Enable autostart of notification-daemon when installed
|
||||||
if [ ! -e /etc/xdg/autostart/notification-daemon.desktop ]; then
|
if [ ! -L /etc/xdg/autostart/notification-daemon.desktop ]; then
|
||||||
ln -s /usr/share/applications/notification-daemon.desktop /etc/xdg/autostart/
|
ln -s /usr/share/applications/notification-daemon.desktop /etc/xdg/autostart/
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -152,6 +152,10 @@ EOF
|
|||||||
############################
|
############################
|
||||||
## Service Management Functions ##
|
## Service Management Functions ##
|
||||||
############################
|
############################
|
||||||
|
is_static() {
|
||||||
|
[ -f "/usr/lib/systemd/system/$1" ] && ! grep -q '^[[].nstall]' "/usr/lib/systemd/system/$1"
|
||||||
|
}
|
||||||
|
|
||||||
is_masked() {
|
is_masked() {
|
||||||
if [ ! -L /etc/systemd/system/"$1" ]
|
if [ ! -L /etc/systemd/system/"$1" ]
|
||||||
then
|
then
|
||||||
@ -227,7 +231,8 @@ restore_units() {
|
|||||||
|
|
||||||
configure_systemd() {
|
configure_systemd() {
|
||||||
|
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]
|
||||||
|
then
|
||||||
preset_units /usr/lib/systemd/system-preset/$qubes_preset_file initial
|
preset_units /usr/lib/systemd/system-preset/$qubes_preset_file initial
|
||||||
changed=true
|
changed=true
|
||||||
else
|
else
|
||||||
@ -244,7 +249,7 @@ else
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]
|
||||||
then
|
then
|
||||||
# First install.
|
# First install.
|
||||||
# Set default "runlevel".
|
# Set default "runlevel".
|
||||||
@ -408,6 +413,7 @@ post_upgrade() {
|
|||||||
|
|
||||||
configure_systemd 1
|
configure_systemd 1
|
||||||
|
|
||||||
|
|
||||||
update_finalize
|
update_finalize
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user