commit oublié
This commit is contained in:
parent
56acc3e98c
commit
0bc219e472
|
@ -1,5 +1,5 @@
|
|||
Package: amp-base
|
||||
Version: 1.16
|
||||
Version: 1.18
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
|
|
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
Package: amp-proxmox-utils
|
||||
Version: 1.08
|
||||
Version: 1.14
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
for tmp in $(pct list | grep running | cut -c 1-3)
|
||||
do
|
||||
lxc-attach $tmp "[ -e /usr/bin/amp-full-upgrade ] && amp-full-upgrade "
|
||||
done
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
for tmp in $(pct list | grep run | cut -c 1-3)
|
||||
do
|
||||
echo ------------------------------------------------------
|
||||
echo $tmp
|
||||
echo ------------------------------------------------------
|
||||
pct exec $tmp amp-full-upgrade
|
||||
pct exec $tmp apt clean
|
||||
done
|
|
@ -1,6 +1,7 @@
|
|||
set -e
|
||||
SRC_DEBOOTSTRAP=/usr/share/debootstrap/scripts
|
||||
IMAGE=$1
|
||||
URL=$2
|
||||
TARBALL=$1-$(date +%Y%m%d).tar.gz
|
||||
if [ -f $SRC_DEBOOTSTRAP/$IMAGE ] ;
|
||||
then
|
||||
|
@ -8,14 +9,15 @@ then
|
|||
rm $TARGET
|
||||
mkdir $TARGET
|
||||
echo create rootfs in temporary folder $TARGET
|
||||
debootstrap $IMAGE $TARGET > /dev/null
|
||||
debootstrap $IMAGE $TARGET $URL > /dev/null
|
||||
echo create archive $TARBALL
|
||||
tar -C $TARGET -zcvf $TARBALL > /dev/null
|
||||
tar -C $TARGET -zcvf $TARBALL . > /dev/null
|
||||
echo Remove temporary folder
|
||||
rm -fr $TARGET
|
||||
chmod ugo+r $TARBALL
|
||||
echo lxc image available in $TARBALL
|
||||
else
|
||||
echo $(basename $0) \<version\>
|
||||
echo $(basename $0) \<version\> [\<url\>]
|
||||
echo $(basename $0) focal http://archive.ubuntu.com/ubuntu
|
||||
ls $SRC_DEBOOTSTRAP
|
||||
fi
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
for tmp in $(pct list | grep run | cut -c 1-3); do
|
||||
echo $tmp
|
||||
pct exec $tmp amp-full-upgrade
|
||||
pct exec $tmp apt clean
|
||||
pct exec $tmp fstrim /
|
||||
done
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
Package: amp-upgrade-gotify
|
||||
Version: 1.02
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: wget, unzip
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Description: gotify upgrade script
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
PROJECT_URL=https://github.com/gotify/server
|
||||
VERSION=$(wget -qO - $PROJECT_URL/releases.atom | grep "releases/tag" | head -n 1 | grep -o -P "/tag/[^\"]*" | cut -c 6-)
|
||||
FILE=gotify-linux-amd64.zip
|
||||
TMP_PATH=$(mktemp -d)
|
||||
|
||||
wget ${PROJECT_URL}/releases/download/$VERSION/$FILE -O $TMP_PATH/gotify-linux-amd64.zip
|
||||
|
||||
cd $TMP_PATH/
|
||||
unzip gotify-linux-amd64.zip
|
||||
mv gotify-linux-amd64 /usr/bin/gotify-linux-amd64
|
||||
chmod +x /usr/bin/gotify-linux-amd64
|
||||
cd -
|
||||
|
||||
rm -fr $TMP_PATH
|
Loading…
Reference in New Issue