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:
parent
4743f833d4
commit
dece003b36
2 changed files with 17 additions and 8 deletions
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
@ -19,14 +19,18 @@ jobs:
|
|||
- name: Install Pandora
|
||||
run: |
|
||||
sudo ./install.sh
|
||||
|
||||
- name: Reboot server
|
||||
hosts: server
|
||||
become: yes
|
||||
roles:
|
||||
- reboot
|
||||
|
||||
- name: Copy ini file
|
||||
run: |
|
||||
cp pandora-box.ini.curses pandora-dox.ini
|
||||
|
||||
- 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()
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue