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
|
- name: Install Pandora
|
||||||
run: |
|
run: |
|
||||||
sudo ./install.sh
|
sudo ./install.sh
|
||||||
|
|
||||||
|
- name: Reboot server
|
||||||
|
hosts: server
|
||||||
|
become: yes
|
||||||
|
roles:
|
||||||
|
- reboot
|
||||||
|
|
||||||
- name: Copy ini file
|
vars_prompt:
|
||||||
run: |
|
- name: "reboot"
|
||||||
cp pandora-box.ini.curses pandora-dox.ini
|
prompt: "Are you sure you want to reboot server (yes/no)?"
|
||||||
|
private: no
|
||||||
- name: Start pandora-box
|
default: "no"
|
||||||
run: |
|
|
||||||
./pandora-box.py
|
|
||||||
|
|
||||||
- name: Upload Screenshots
|
- name: Upload Screenshots
|
||||||
if: failure()
|
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 "StandardOutput=tty" >> /etc/systemd/system/getty@tty1.service.d/override.conf
|
||||||
echo "Type=idle" >> /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