Run provisioning after package install
This commit is contained in:
@@ -18,12 +18,14 @@ log() {
|
||||
|
||||
log "starting"
|
||||
|
||||
chrome_ok=true
|
||||
|
||||
if /usr/local/bin/classroom-chrome-setup; then
|
||||
:
|
||||
else
|
||||
log "WARNING: Google Chrome is not installed. The Browser button will"
|
||||
log "WARNING: not work until this succeeds. Retrying at the next boot,"
|
||||
log "WARNING: or run: sudo classroom-chrome-setup"
|
||||
chrome_ok=false
|
||||
log "WARNING: Google Chrome is not installed yet."
|
||||
log "WARNING: Provisioning will retry automatically."
|
||||
fi
|
||||
|
||||
# DVD codecs are only fetched for rooms that actually have a drive.
|
||||
@@ -38,4 +40,10 @@ fi
|
||||
log "finished"
|
||||
|
||||
# Provisioning is best-effort by design.
|
||||
exit 0
|
||||
# Chrome is required for a usable classroom. Returning failure here does
|
||||
# not block boot; systemd retries this oneshot service in the background.
|
||||
if [[ "$chrome_ok" != true ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user