Update build-doc-and-os.yml
This commit is contained in:
parent
29cc68f434
commit
7618f96dba
24
.github/workflows/build-doc-and-os.yml
vendored
24
.github/workflows/build-doc-and-os.yml
vendored
@ -75,10 +75,11 @@ jobs:
|
||||
user: inky
|
||||
commands: |
|
||||
cd /home
|
||||
echo 'ALL ALL=(ALL:ALL) PASSWD: ALL' | sudo tee -a /etc/sudoers.d/010_require_sudo_password
|
||||
sudo useradd -m -p "$(openssl passwd -1 $INKY_INITAL_PASSWORD)" inky
|
||||
sudo usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,gpio,i2c,spi inky
|
||||
su - inky
|
||||
sudo su inky
|
||||
echo $HOME
|
||||
whoami
|
||||
cd /home/inky
|
||||
sudo apt-get update -y
|
||||
python --version
|
||||
@ -96,9 +97,24 @@ jobs:
|
||||
cd inkycal/tests
|
||||
wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json
|
||||
for f in *.py; do python3 "$f"; done
|
||||
sudo chown -R inky:inky /home/inky/Inkycal
|
||||
|
||||
# enable SPI
|
||||
sudo sed -i s/#dtparam=spi=on/dtparam=spi=on/ /boot/config.txt
|
||||
|
||||
# enable inkycal start at boot
|
||||
sudo -u inky bash -c 'echo "@reboot sleep 60 && cd /home/inky/Inkycal && venv/bin/python inky_run.py &" | crontab -'
|
||||
sudo chown inky:crontab /var/spool/cron/crontabs/inky
|
||||
|
||||
# fix permissions of Inkycal folder recursively
|
||||
sudo chown -R inky:inky /home/inky/Inkycal
|
||||
|
||||
# set hostname to inkycal-lite
|
||||
sudo sh -c 'echo "inkycal-lite" > /etc/hostname; hostnamectl set-hostname inkycal-lite; sed -i "s/127.0.1.1.*/127.0.1.1\tinkycal/g" /etc/hosts'
|
||||
|
||||
# make all users require a password for sudo commands (improves security)
|
||||
echo 'ALL ALL=(ALL:ALL) PASSWD: ALL' | sudo tee -a /etc/sudoers.d/010_require_sudo_password
|
||||
history -cw
|
||||
|
||||
- name: Compress the release image
|
||||
run: |
|
||||
mv ${{ steps.build_image.outputs.image }} inkycal_os_lite.img
|
||||
@ -117,5 +133,3 @@ jobs:
|
||||
with:
|
||||
tag_name: ${{ env.version }}
|
||||
files: inkycal_os_lite.img.xz
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user