Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream lmn #97

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions linbofs/linbo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ else # handle missing gui problem
echo "Console boot menue of group $HOSTGROUP"
echo "----------------------------------------"
count=0
if [ -d "/conf/" ]; then
for item in /conf/os.*; do
source "$item"
count=$(( count + 1 ))
echo "[$count] Start $name"
count=$(( count + 1 ))
echo "[$count] Sync & start $name"
done
fi
echo "----------------------------------------"
echo "[R] Reboot"
echo "[S] Shutdown"
Expand Down
19 changes: 19 additions & 0 deletions serverfs/usr/sbin/update-linbofs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,22 @@ update_linbofs() {

}

execute_hookscripts() {
hookdir="/var/lib/linuxmuster/hooks/update-linbofs.post.d"
if [ ! -d "$hookdir" ]; then
mkdir $hookdir
fi
hook_files=$(find "$hookdir" -type f -executable)

for file in $hook_files; do
if [[ -x "$file" ]]; then
echo "Executing Hookfile $file"
"$file"
fi
done
}


# grep linbo rsync password to sync it with linbo account
[ ! -s /etc/rsyncd.secrets ] && bailout "/etc/rsyncd.secrets not found!"
linbo_passwd="$(grep ^linbo /etc/rsyncd.secrets | awk -F\: '{ print $2 }')"
Expand All @@ -135,4 +151,7 @@ update_linbofs 64
# create iso files
"$LINBOSHAREDIR"/make-linbo-iso.sh

# run hookscripts
execute_hookscripts

rm -f "$locker"