updated scripts for testing

This commit is contained in:
2024-03-04 19:02:25 -06:00
parent 781388e53f
commit 34431c07dc
7 changed files with 53 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
#!/bin/ash
if [ "$EUID" -ne 0 ]
then
echo "Please run as root"
exit
fi
apk update
apk add sudo
echo '%akanealw ALL=(ALL) ALL' > /etc/sudoers.d/akanealw

View File

@@ -1,5 +1,11 @@
#!/bin/ash
if [ "$EUID" -eq 0 ]
then
echo "Please do NOT run as root"
exit
fi
# git config
git config --global credential.helper store
git config --global user.name "akanealw"

View File

@@ -1,5 +1,11 @@
#!/bin/ash
if [ "$EUID" -ne 0 ]
then
echo "Please run as root"
exit
fi
# edit repositories
echo "http://dl-cdn.alpinelinux.org/alpine/latest-stable/main" > /etc/apk/repositories
echo "http://dl-cdn.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories

View File

@@ -1,6 +1,13 @@
#!/bin/ash
apk update && apk upgrade
if [ "$EUID" -ne 0 ]
then
echo "Please run as root"
exit
fi
apk update
apk upgrade
apk add docker docker-cli-compose
addgroup akanealw docker

View File

@@ -0,0 +1,13 @@
#!/bin/ash
if [ "$EUID" -ne 0 ]
then
echo "Please run as root"
exit
fi
apk add --no-cache cfdisk e2fsprogs-extra
cfdisk
resize2fs /dev/sda3

View File

@@ -1,5 +1,11 @@
#!/bin/bash
if [ "$EUID" -eq 0 ]
then
echo "Please do NOT run as root"
exit
fi
# add aliases
echo "# custom settings and aliases" > ~/.bash_profile
echo "" >> ~/.bash_profile

View File

@@ -1,10 +1,18 @@
#!/bin/ash
if [ "$EUID" -ne 0 ]
then
echo "Please run as root"
exit
fi
mkdir -p /home/akanealw/scripts > /dev/null 2>&1
rm /home/akanealw/scripts/alpine-* > /dev/null 2>&1
wget -qO /home/akanealw/scripts/alpine-essentials.sh http://192.168.1.50/scripts/alpine/alpine-essentials.sh
wget -qO /home/akanealw/scripts/alpine-install-docker.sh http://192.168.1.50/scripts/alpine/alpine-install-docker.sh
wget -qO /home/akanealw/scripts/alpine-resize-disk.sh http://192.168.1.50/scripts/alpine/alpine-resize-disk.sh
wget -qO /home/akanealw/scripts/alpine-user-customizations.sh http://192.168.1.50/scripts/alpine/alpine-user-customizations.sh
chown -R akanealw:akanealw /home/akanealw/scripts/
chmod +x /home/akanealw/scripts/alpine-*