diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-04-05 19:49:05 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-04-20 15:38:58 +0300 |
commit | a9458f526524fee8474f67b1999d49000a0e5fbf (patch) | |
tree | 39041c89a908306181bf70bb9a15c1d83a3a6608 /buildlib.sh | |
parent | 0d6c780911fd2e96681834764a057985d9bf2f81 (diff) |
renamed to NextCloudPlusv0.53.29
Diffstat (limited to 'buildlib.sh')
-rw-r--r-- | buildlib.sh | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/buildlib.sh b/buildlib.sh index 4f024818..a7c720f8 100644 --- a/buildlib.sh +++ b/buildlib.sh @@ -155,7 +155,7 @@ function deactivate_unattended_upgrades() [ -f "$IMG" ] || { echo "no image"; return 1; } mkdir -p tmpmnt sudo mount "$IMG" -o offset="$OFFSET" tmpmnt || return 1 - sudo rm -f tmpmnt/etc/apt/apt.conf.d/20nextcloudpi-upgrades + sudo rm -f tmpmnt/etc/apt/apt.conf.d/20ncp-upgrades sudo umount -l tmpmnt rmdir tmpmnt &>/dev/null } @@ -199,7 +199,7 @@ function create_torrent() [[ -d "$DIR" ]] && { echo "dir $DIR already exists"; return 1; } mkdir -p torrent/"$IMGNAME" && cp --reflink=auto "$IMG" torrent/"$IMGNAME" md5sum "$DIR"/*.bz2 > "$DIR"/md5sum - createtorrent -a udp://tracker.opentrackr.org -p 1337 -c "NextCloudPi. Nextcloud for Raspberry Pi image" "$DIR" "$DIR".torrent + createtorrent -a udp://tracker.opentrackr.org -p 1337 -c "NextCloudPlus. Nextcloud for Raspberry Pi image" "$DIR" "$DIR".torrent } function generate_changelog() @@ -211,22 +211,6 @@ function generate_changelog() sed 's|* \[tag: |\n[|' > changelog.md } -function deactivate_unattended_upgrades() -{ - local IMG=$1 - local SECTOR - local OFFSET - SECTOR=$( fdisk -l "$IMG" | grep Linux | awk '{ print $2 }' ) - OFFSET=$(( SECTOR * 512 )) - - [ -f "$IMG" ] || { echo "no image"; return 1; } - mkdir -p tmpmnt - sudo mount "$IMG" -o offset="$OFFSET" tmpmnt || return 1 - sudo rm -f tmpmnt/etc/apt/apt.conf.d/20nextcloudpi-upgrades - sudo umount -l tmpmnt - rmdir tmpmnt &>/dev/null -} - function prepare_sshd() { local IMG="$1" |