Comments (3)
That is correct as it is. It could be rewritten with a -n
instead of ! -z
but the logic is correct. It's testing to see if you launched the script as sudo (which you should not do). If SUDO_USER
is not empty, that means that you are running as sudo so we throw an error and abort.
from plexupdate.
from plexupdate.
Did you try running it without sudo? If you just run it from a regular user shell (not sudo bash
) it will automatically ask you for sudo permissions when it needs it and everything should work fine. If you were having a problem with that not happening, that could be a separate issue. If not, and you modified the line as you described above, you've probably ended up installing as root which isn't strictly a problem, but not the way it's intended to be installed.
from plexupdate.
Related Issues (20)
- Specify cron download directory? HOT 1
- No email notification after an update HOT 2
- update keeps downloading HOT 1
- it was working before fine....but now HOT 4
- naming scheme for Raspberry Pi package / armv7 on Debian has been changed again by Plex HOT 1
- Arch Updater
- Scheduled update makes PMS inaccessible HOT 61
- Update during DVR quiet time HOT 1
- ARM 64 bit (Raspberry Pi 4)
- Logging and Scheduling Confusion (Where? And) HOT 2
- Resets service group HOT 2
- Running plexupdate.sh causes segfault in systemd HOT 1
- Rollback?
- Getting an email HOT 4
- Feature Request: Make Installer Automation-Friendly HOT 1
- Just installed, getting an error on run
- get token script doesn't work if MFA is enabled HOT 2
- Where does it download the PMS installer to? HOT 3
- Cron job not running? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plexupdate.