Skip to content

Commit

Permalink
improved readability by renaming post-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanXD committed May 26, 2024
1 parent 90d98ae commit 9b32a63
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ create_version_info() {
# Function to run post-upgrade script if exists
run_post_upgrade_script() {
local scripts_tag=$1
local postupgradescript="$DIR/rpi-scripts/$scripts_tag/post-upgrade.sh"
local postupgradescript="$DIR/rpi-scripts/post-upgrade/post-upgrade.sh"
log "Checking for existence of post-upgrade script in: $postupgradescript"
if [ -f "$postupgradescript" ]; then
log 'Running post-upgrade script'
Expand Down
2 changes: 1 addition & 1 deletion v1.5.3/post-upgrade.sh → post-upgrade/post-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ "$(id -u)" != 0 ]; then
exit 1
fi

VERSION="v1.5.3"
VERSION="post-upgrade"

log() {
echo "[$(date +'%Y-%m-%d %H:%M:%S')] $1" | tee -a /var/log/honeypi_post_upgrade.log
Expand Down

0 comments on commit 9b32a63

Please sign in to comment.