Skip to content

Commit

Permalink
v6.20
Browse files Browse the repository at this point in the history
+ DietPi-Update | Run "sync" before running incremental patches, to resolve possible async issues
  • Loading branch information
MichaIng authored Jan 29, 2019
1 parent ca6024a commit 6e8ea42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dietpi/dietpi-update
Original file line number Diff line number Diff line change
Expand Up @@ -340,18 +340,19 @@ Do you wish to continue and update DietPi to v$COREVERSION_SERVER.$SUBVERSION_SE

#Remove folders of "non-critical scripts" before updating them. (eg: so we dont need to patch for /conf/* file removals)
# :https://github.com/Fourdee/DietPi/issues/905#issuecomment-298241622
# rm -R /DietPi/dietpi/func
# rm -R /DietPi/dietpi/misc

l_message='Copy DietPi core files to RAMdisk' G_RUN_CMD cp -Rf DietPi-"$GITBRANCH_TARGET"/dietpi /DietPi/
l_message='Copy DietPi rootfs files in place' G_RUN_CMD cp -Rf DietPi-"$GITBRANCH_TARGET"/rootfs/. /

l_message='Set execute permissions for DietPi scripts' G_RUN_CMD chmod -R +x /DietPi/dietpi /var/lib/dietpi/services /etc/cron.*/dietpi
systemctl daemon-reload

#Verify/update dietpi.txt entries:
/DietPi/dietpi/func/dietpi-set_software verify_dietpi.txt

#Assure to resolve async issues, before running incremental patches
sync

G_DIETPI-NOTIFY 3 "$G_PROGRAM_NAME" 'Running incremental patching'
G_DIETPI-NOTIFY 2 "$INFO_CURRENT_VERSION"
G_DIETPI-NOTIFY 2 "$INFO_SERVER_VERSION"
Expand Down

0 comments on commit 6e8ea42

Please sign in to comment.