Son aktivite 6 months ago

Jan Wagner bu gisti düzenledi 8 years ago. Düzenlemeye git

1 file changed, 2 insertions

jessie2stretch.sh

@@ -120,6 +120,8 @@ apt-get dist-upgrade
120 120 apt install $(dpkg -l |grep php5 | awk '/^i/ { print $2 }' |grep -v ^php5$ |sed s/php5/php/)
121 121 # Fix IfModule mod_php5 in apache2 vHosts
122 122 sed -i "s/IfModule mod_php5/IfModule mod_php7/g" /etc/apache2/sites-available/*
123 + # are there config needed to me migrated over to php my hand?
124 + ls -la /etc/php5/{apache2,cli}/conf.d/
123 125 a2dismod php5; a2enmod php7.0 && systemctl restart apache2
124 126
125 127 # Fix our ssh pub key package configuration

Jan Wagner bu gisti düzenledi 8 years ago. Düzenlemeye git

1 file changed, 1 insertion, 1 deletion

jessie2stretch.sh

@@ -8,7 +8,7 @@ dpkg-reconfigure locales
8 8 rm -rf /etc/network/options /etc/environment
9 9
10 10 # migrate over to systemd (before the upgrade) / you might want reboot if you install systemd
11 - aptitude install systemd systemd-sysv
11 + aptitude install systemd systemd-sysv libpam-systemd
12 12
13 13 # are there 3rd party packages installed? (https://www.debian.org/releases/stretch/amd64/release-notes/ch-upgrading.de.html#system-status)
14 14 aptitude search '~i(!~ODebian)'

Jan Wagner bu gisti düzenledi 8 years ago. Düzenlemeye git

Değişiklik yok

Jan Wagner bu gisti düzenledi 8 years ago. Düzenlemeye git

1 file changed, 1 insertion, 1 deletion

jessie2stretch.sh

@@ -159,7 +159,7 @@ apt purge $(dpkg -l | grep lenny | grep -v xen | awk '/^rc/ { print $2 }') && \
159 159 apt purge $(dpkg -l | grep -E 'deb6|squeeze' | grep -v xen | awk '/^rc/ { print $2 }') && \
160 160 apt purge $(dpkg -l | grep -E 'deb7|wheezy' | grep -v xen | grep -v -E 'linux-image|mailscanner|openswan|debian-security-support' | awk '/^rc/ { print $2 }') && \
161 161 apt purge $(dpkg -l | grep -E 'deb8|jessie' | grep -v xen | grep -v -E 'linux-image|debian-security-support' | awk '{ print $2 }') && \
162 - apt -y install deborphan && apt purge $(deborphan | grep -v xen | grep -v libpam-cracklib | awk '/^rc/ { print $2 }')
162 + apt -y install deborphan && apt purge $(deborphan | grep -v xen | grep -v libpam-cracklib)
163 163 apt purge $(dpkg -l | awk '/^rc/ { print $2 }')
164 164
165 165 # for the brave YoloOps crowd

waja bu gisti düzenledi 8 years ago. Düzenlemeye git

1 file changed, 1 insertion

jessie2stretch.sh

@@ -106,6 +106,7 @@ sed -i "s#//\$cfg\['Servers'\]\[\$i\]\['auth_type'\] = 'http';#\$cfg['Servers'][
106 106 mv /etc/mysql/conf.d/bind.cnf /etc/mysql/mariadb.conf.d/90-bind.cnf
107 107 # In some cases the upgrade of databases seems not work out (problems with mysql.proc)
108 108 mysql_upgrade -f -p
109 + # have look into https://mariadb.com/kb/en/the-mariadb-library/moving-from-mysql-to-mariadb-in-debian-9/#configuration-options-for-advanced-database-users
109 110
110 111 # maybe we want to change some shorewall config stuff again
111 112 # shorewall needs to be enabled via systemctl, /etc/default is not used by systemd

Jan Wagner bu gisti düzenledi 8 years ago. Düzenlemeye git

1 file changed, 1 insertion

jessie2stretch.sh

@@ -40,6 +40,7 @@ dpkg --get-selections | grep hold
40 40
41 41 # unmark packages auto
42 42 aptitude unmarkauto vim net-tools && \
43 + aptitude unmarkauto libapache2-mpm-itk && \
43 44 aptitude unmarkauto monitoring-plugins-standard monitoring-plugins-common monitoring-plugins-basic && \
44 45 aptitude unmarkauto $(dpkg-query -W 'linux-image-3.16*' | cut -f1)
45 46

Jan Wagner bu gisti düzenledi 8 years ago. Düzenlemeye git

1 file changed, 1 insertion, 1 deletion

jessie2stretch.sh

@@ -146,7 +146,7 @@ pg_dropcluster 9.4 main
146 146 # sed -i 's/#vif.default.script="vif-bridge"/vif.default.script="vif-bridge-local"/' /etc/xen/xl.conf
147 147
148 148 # migrate/backup your images (before) migrating to docker overlay2 storage driver
149 - # rm -rf /var/lib/docker/aufs
149 + # umount /var/lib/docker/aufs; rm -rf /var/lib/docker/aufs
150 150
151 151 # remove old squeeze packages left around (keep eyes open!)
152 152 apt autoremove && \

Jan Wagner bu gisti düzenledi 8 years ago. Düzenlemeye git

1 file changed, 1 insertion, 1 deletion

jessie2stretch.sh

@@ -30,7 +30,7 @@ sed -i "s/ stable/ stretch/g" /etc/apt/sources.list*
30 30 sed -i s/jessie/stretch/g /etc/apt/preferences*
31 31 sed -i s/jessie/stretch/g /etc/apt/sources.list.d/*jessie*
32 32 rename s/jessie/stretch/g /etc/apt/sources.list.d/*jessie*
33 - rgrep jessie /etc/apt/sources.list*
33 + rgrep --color jessie /etc/apt/sources.list*
34 34 apt-get update
35 35
36 36 # check package status

Jan Wagner bu gisti düzenledi 8 years ago. Düzenlemeye git

1 file changed, 3 insertions

jessie2stretch.sh

@@ -145,6 +145,9 @@ pg_dropcluster 9.4 main
145 145 #[ $(grep "^(vif-script vif-bridge-local" /etc/xen/xend-config.sxp | wc -l) -gt 0 ] && \
146 146 # sed -i 's/#vif.default.script="vif-bridge"/vif.default.script="vif-bridge-local"/' /etc/xen/xl.conf
147 147
148 + # migrate/backup your images (before) migrating to docker overlay2 storage driver
149 + # rm -rf /var/lib/docker/aufs
150 +
148 151 # remove old squeeze packages left around (keep eyes open!)
149 152 apt autoremove && \
150 153 apt purge $(dpkg -l | awk '/gcc-4.9/ { print $2 }') && \

Jan Wagner bu gisti düzenledi 8 years ago. Düzenlemeye git

1 file changed, 1 insertion, 1 deletion

jessie2stretch.sh

@@ -117,7 +117,7 @@ apt-get dist-upgrade
117 117 # Migrate php5 packages over to php meta packages
118 118 apt install $(dpkg -l |grep php5 | awk '/^i/ { print $2 }' |grep -v ^php5$ |sed s/php5/php/)
119 119 # Fix IfModule mod_php5 in apache2 vHosts
120 - sed -i "s/IfModule mod_php5/IfModule mod_php/g" /etc/apache2/sites-available/*
120 + sed -i "s/IfModule mod_php5/IfModule mod_php7/g" /etc/apache2/sites-available/*
121 121 a2dismod php5; a2enmod php7.0 && systemctl restart apache2
122 122
123 123 # Fix our ssh pub key package configuration