1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 05:19:40 +02:00

work on script

This commit is contained in:
dbarzin 2023-02-13 21:28:53 +01:00
parent 4743f833d4
commit dece003b36
2 changed files with 17 additions and 8 deletions

View file

@ -20,13 +20,17 @@ jobs:
run: |
sudo ./install.sh
- name: Copy ini file
run: |
cp pandora-box.ini.curses pandora-dox.ini
- name: Reboot server
hosts: server
become: yes
roles:
- reboot
- name: Start pandora-box
run: |
./pandora-box.py
vars_prompt:
- name: "reboot"
prompt: "Are you sure you want to reboot server (yes/no)?"
private: no
default: "no"
- name: Upload Screenshots
if: failure()

View file

@ -67,4 +67,9 @@ echo "StandardInput=tty" >> /etc/systemd/system/getty@tty1.service.d/override.co
echo "StandardOutput=tty" >> /etc/systemd/system/getty@tty1.service.d/override.conf
echo "Type=idle" >> /etc/systemd/system/getty@tty1.service.d/override.conf
sleep 2 && shutdown -r now "Reboot"
# Copy ini file
cp pandora-box.ini.curses pandora-dox.ini
# Reboot
echo "You may reboot the server"