[GH-ISSUE #478] update.sh won't run after update #294

Closed
opened 2026-03-02 02:15:12 +03:00 by kerem · 1 comment
Owner

Originally created by @davidrudduck on GitHub (May 5, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/478

Updating from 0.6.6 to 0.6.8 the following occurred:

tactical@it-tacticalrmm01:/rmm$ bash ./update.sh
Old update script detected, downloading and replacing with the latest version...
./update.sh: line 19: /rmm/update.sh: Permission denied
./update.sh: line 19: exec: /rmm/update.sh: cannot execute: Permission denied

By default the update script does not chmod +x update.sh, so when it goes to re-run the script, it fails.
Either needs to chmod +x or execute via bash.

ie:
tactical@it-tacticalrmm01:/rmm$ chmod +x update.sh
tactical@it-tacticalrmm01:/rmm$ bash ./update.sh
Hit:1 http://au.archive.ubuntu.com/ubuntu focal InRelease

Installed on Ubuntu 20.04 in non-docker install.

Originally created by @davidrudduck on GitHub (May 5, 2021). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/478 Updating from 0.6.6 to 0.6.8 the following occurred: tactical@it-tacticalrmm01:/rmm$ bash ./update.sh Old update script detected, downloading and replacing with the latest version... ./update.sh: line 19: /rmm/update.sh: Permission denied ./update.sh: line 19: exec: /rmm/update.sh: cannot execute: Permission denied By default the update script does not chmod +x update.sh, so when it goes to re-run the script, it fails. Either needs to chmod +x or execute via bash. ie: tactical@it-tacticalrmm01:/rmm$ chmod +x update.sh tactical@it-tacticalrmm01:/rmm$ bash ./update.sh Hit:1 http://au.archive.ubuntu.com/ubuntu focal InRelease Installed on Ubuntu 20.04 in non-docker install.
kerem closed this issue 2026-03-02 02:15:12 +03:00
Author
Owner

@wh1te909 commented on GitHub (May 5, 2021):

don't call it with bash in the front just do ./update.sh and it will work. first line in the script already tells it to use bash
you need to chmod +x update.sh first, just follow instructions in the docs https://wh1te909.github.io/tacticalrmm/update_server/#updating-to-the-latest-rmm-version

<!-- gh-comment-id:833091068 --> @wh1te909 commented on GitHub (May 5, 2021): don't call it with `bash` in the front just do `./update.sh` and it will work. first line in the script already tells it to use bash you need to `chmod +x update.sh` first, just follow instructions in the docs https://wh1te909.github.io/tacticalrmm/update_server/#updating-to-the-latest-rmm-version
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#294
No description provided.