refactor: use bubble instead
This commit is contained in:
@@ -33,25 +33,15 @@ rc-update add acpid default
|
||||
rc-update add docker default
|
||||
rc-update add cronie default
|
||||
|
||||
step 'Import GPG key for root'
|
||||
GPG_KEY_FILE="/root/gpg-key.asc"
|
||||
if [ -f "$GPG_KEY_FILE" ]; then
|
||||
echo "Found GPG key file: $GPG_KEY_FILE"
|
||||
gpg --batch --import "$GPG_KEY_FILE"
|
||||
# Mark the imported key as ultimately trusted (non-interactive)
|
||||
fingerprint=$(gpg --batch --with-colons --fingerprint \
|
||||
| grep '^fpr:' | head -1 | cut -d: -f10)
|
||||
if [ -n "$fingerprint" ]; then
|
||||
echo "$fingerprint:6:" | gpg --batch --import-ownertrust
|
||||
echo " * GPG key trusted: $fingerprint"
|
||||
fi
|
||||
rm -f "$GPG_KEY_FILE"
|
||||
else
|
||||
echo "WARNING: GPG key file not found at $GPG_KEY_FILE — skipping import" >&2
|
||||
fi
|
||||
|
||||
step 'Clean up APK cache'
|
||||
rm -rf /var/cache/apk/* || true
|
||||
|
||||
step 'Setup git user'
|
||||
git config --user.email bearnet+keeper@sab.ee
|
||||
git config --user.name "B.B.K.K.B.K.K"
|
||||
adduser -S keeper
|
||||
mkdir /users
|
||||
chown keeper /users
|
||||
|
||||
echo ''
|
||||
echo '=== Configure script completed ==='
|
||||
|
||||
Reference in New Issue
Block a user