Skip to content

Commit

Permalink
Temp patching pacback.install and alpha-upgrade.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinTimperio committed Sep 8, 2020
1 parent 6eb6044 commit 02dc653
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
17 changes: 4 additions & 13 deletions build/INSTALL_TEMPLATE
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
# Maintainer: Attila Greguss <floyd0122[at]gmail[dot]com>
# Co-Maintainer/Author: Justin Timperio <justintimperio[at]gmail[dot]com>

## arg 1: the new package version
post_install() {
# Installs Snapshot Hook
pacback -ih
# Installs Snapshot Hook
pacback -ih
}

## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
newVer=$1
oldVer=$2

if [ ${newVer:0:1} -eq 2 ] && [ ${oldVer:0:1} -eq 1 ];
then
/tmp/alpha-upgrade.sh
fi;
# Run Alpha Upgrade
/tmp/alpha-upgrade.sh
rm -f /tmp/alpha-upgrade.sh
}

Expand All @@ -25,7 +17,6 @@ pre_remove() {
pacback -rh
}

## arg 1: the old package version
post_remove() {
# Removes Cached User Data
rm -Rf /var/lib/pacback
Expand Down
3 changes: 0 additions & 3 deletions build/alpha-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

## Updates Meta Data Files and Directory Paths for Upgrade From Alpha
## The Script is Safe to Run Multiple Times
echo 'Starting Upgrade Of Any Alpha Restore Point Data...'

#########################
# Patch Metadata Files
Expand Down Expand Up @@ -45,5 +44,3 @@ find $base_path -type f -name '*.meta' -exec sed -i 's/^Dirs /Dir /' {} +

# Change Package Cache Folder Name
find $base_path/restore-points -type d -name 'pac_cache' -exec rename 'pac_cache' 'pkg-cache' {} +

echo 'Finished Upgrade!'

0 comments on commit 02dc653

Please sign in to comment.