after doing restart, trying to exit causes another restart
Describe the bug A clear and concise description of what the bug is. if I do (6) and choose restart, then (10) to exit, it restarts invidious again and remains in the script
To Reproduce Steps to reproduce the behavior:
- launch invidious_updater script
- type 6 and press enter
- type 3 and press enter
- type 10 and press enter
- it instead restarts. and no matter how many times I type 10, it instead restarts. I have to cntrl-c to exit
Expected behavior A clear and concise description of what you expected to happen. after doing restart and then trying to exit, it should exit
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: iPhone 13
- OS: iOS 16.4
- Browser n/a I use xTerminal Pro to access the Ubuntu box the script runs on
- Version [e.g. 22]
Additional context Add any other context about the problem here. as a test I just ssh'd into the Ubuntu box from my Macbook Air using iTerm2 and behavior was the same
similar thing happens if I choose 6 to restart then 4 to rebuild. once at the main menu if I choose 10 to exit, it instead rebuilds invidious again
I have this issue as well, after I installed invidious, it tried to reinstall every time I told it to exit.
I ran the script again, and restarted invidious, then tried to exit, here is the output:
Select an option [1-10]: 10
____ _ ___ / _/___ _ __(_)___/ (_)___ __ _______ / // __ \ | / / / __ / / __ \/ / / / ___// // / / / |/ / / // / / // / // (__ ) /// //|//_,//_/_,// __ __ __ __ __ / / / / / / / /__ / / / / / / __ / __ / __ `/ / _ \ / / __
/ // / // / // / // / // / ( ) / / / _/ ./_,/_,/_/___()_// // //This script runs on coffee ☕
GitHub ➜ https://github.com/sponsors/tmiland Coindrop ➜ https://coindrop.to/tmilandDocumentation for this script is available here: ➜ https://github.com/tmiland/invidious-updater
➜ Goodbye. ☺
➜ restart Invidious... ✔ done. ● invidious.service - Invidious (An alternative YouTube front-end) Loaded: loaded (/etc/systemd/system/invidious.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2023-07-09 23:40:58 UTC; 22ms ago Main PID: 4989 (invidious) Tasks: 1 (limit: 4915) CGroup: /system.slice/invidious.service └─4989 /home/invidious/invidious/invidious -o invidious.log
Jul 09 23:40:58 invidious systemd[1]: Started Invidious (An alternative YouTube front-end).
╔═══════════════════════════════════════════════════════════════════╗ ║ Invidious Update.sh ║ ║ Automatic update script for Invidious ║ ║ Maintained by @tmiland ║ ║ version: 2.1.2 ║ ╚═══════════════════════════════════════════════════════════════════╝
Welcome to the Invidious Update.sh script.
What do you want to do?
- Install Invidious 6) Start, Stop or Restart
- Update Invidious 7) Uninstall Invidious
- Deploy with Docker 8) Set up PostgreSQL Backup
- Add Swap Space 9) Install Nginx
- Run Database Maintenance 10) Exit
Services running: Invidious: ● active PostgreSQL: ● active
Documentation for this script is available here: ➜ https://github.com/tmiland/invidious-updater
Select an option [1-10]:
I think it is repeating the last command issued, since the restart keeps restarting and the update option keeps trying to update.