-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from NethServer/bug-6942
Resume import-module action after NS8 reboot Refs NethServer/dev#6942
- Loading branch information
Showing
4 changed files
with
90 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
root/usr/share/nethesis/nethserver-ns8-migration/apps/account-provider/check-import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Copyright (C) 2024 Nethesis S.r.l. | ||
# http://www.nethesis.it - [email protected] | ||
# | ||
# This script is part of NethServer. | ||
# | ||
# NethServer is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, | ||
# or any later version. | ||
# | ||
# NethServer is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with NethServer. If not, see COPYING. | ||
# | ||
|
||
set -e | ||
|
||
account_provider_type=$(/sbin/e-smith/config getprop sssd Provider) | ||
ns8-check-import "account-provider/${account_provider_type}" |
46 changes: 46 additions & 0 deletions
46
root/usr/share/nethesis/nethserver-ns8-migration/apps/nethserver-mail/check-import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Copyright (C) 2024 Nethesis S.r.l. | ||
# http://www.nethesis.it - [email protected] | ||
# | ||
# This script is part of NethServer. | ||
# | ||
# NethServer is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, | ||
# or any later version. | ||
# | ||
# NethServer is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with NethServer. If not, see COPYING. | ||
# | ||
|
||
set -e | ||
|
||
ns8-check-import nethserver-mail & | ||
|
||
if [[ -f /etc/e-smith/db/configuration/defaults/webtop/type ]]; then | ||
ns8-check-import nethserver-webtop5 & | ||
fi | ||
|
||
if [[ -f /etc/e-smith/db/configuration/defaults/roundcubemail/type && -d '/var/lib/mysql/roundcubemail' ]]; then | ||
ns8-check-import nethserver-roundcubemail & | ||
fi | ||
|
||
if [[ -f /etc/e-smith/db/configuration/defaults/sogod/type ]]; then | ||
ns8-check-import nethserver-sogo & | ||
fi | ||
|
||
# Getmail is not a service | ||
if [[ -f /etc/e-smith/events/actions/nethserver-getmail-conf ]]; then | ||
ns8-check-import nethserver-mail-getmail & | ||
fi | ||
|
||
for pid in $(jobs -p); do | ||
wait "${pid}" | ||
done |