-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
(cherry picked from commit 38ed452) Co-authored-by: Devon Powell <[email protected]>
- Loading branch information
1 parent
8496589
commit 37504c3
Showing
16 changed files
with
65 additions
and
72 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
root/etc/s6-overlay/s6-rc.d/base-apply-permissions/dependencies
This file was deleted.
Oops, something went wrong.
Empty file.
File renamed without changes.
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 |
---|---|---|
@@ -1 +1 @@ | ||
/etc/s6-overlay/scripts/base-apply-permissions | ||
/etc/s6-overlay/s6-rc.d/base-apply-permissions/run |
Empty file.
File renamed without changes.
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 |
---|---|---|
@@ -1 +1 @@ | ||
/etc/s6-overlay/scripts/base-set-up-timezone | ||
/etc/s6-overlay/s6-rc.d/base-set-up-timezone/run |
Empty file.
File renamed without changes.
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 |
---|---|---|
@@ -1 +1 @@ | ||
/etc/s6-overlay/scripts/base-set-up-user | ||
/etc/s6-overlay/s6-rc.d/base-set-up-user/run |
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
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 |
---|---|---|
@@ -1,4 +1,65 @@ | ||
#!/command/with-contenv bash | ||
|
||
set -e | ||
exec /etc/s6-overlay/scripts/test | ||
|
||
echo "Platform: $(uname -m)" | ||
|
||
result=0 | ||
|
||
echo "=> Check '/.base-apply-permissions-complete' exists" | ||
|
||
if [ -e /.base-apply-permissions-complete ]; then | ||
echo "=> Success! File '/.base-apply-permissions-complete' exists" | ||
else | ||
echo "=> Failed! File '/.base-apply-permissions-complete' missing" | ||
|
||
result=1 | ||
fi | ||
|
||
echo "=> Check '/.base-set-up-timezone-complete' exists" | ||
|
||
if [ -e /.base-set-up-timezone-complete ]; then | ||
echo "=> Success! File '/.base-set-up-timezone-complete' exists" | ||
else | ||
echo "=> Failed! File '/.base-set-up-timezone-complete' missing" | ||
|
||
result=1 | ||
fi | ||
|
||
echo "=> Check '/.base-set-up-user-complete' exists" | ||
|
||
if [ -e /.base-set-up-user-complete ]; then | ||
echo "=> Success! File '/.base-set-up-user-complete' exists" | ||
else | ||
echo "=> Failed! File '/.base-set-up-user-complete' missing" | ||
|
||
result=1 | ||
fi | ||
|
||
echo "=> Check '/etc/timezone' is correct" | ||
|
||
timezone=$(cat /etc/timezone) | ||
|
||
if [[ "$timezone" == "$TZ" ]]; then | ||
echo "=> Success! File '/etc/timezone' correct" | ||
else | ||
echo "=> Failed! File '/etc/timezone' incorrect ($timezone => $TZ)" | ||
|
||
result=1 | ||
fi | ||
|
||
echo "=> Check '/etc/localtime' is correct" | ||
|
||
localtime=$(readlink /etc/localtime) | ||
expected="/usr/share/zoneinfo/$TZ" | ||
|
||
if [[ "$localtime" == "$expected" ]]; then | ||
echo "=> Success! File '/etc/localtime' correct" | ||
else | ||
echo "=> Failed! File '/etc/localtime' incorrect ($localtime => $expected)" | ||
|
||
result=1 | ||
fi | ||
|
||
exit $result | ||
|
This file was deleted.
Oops, something went wrong.