Changeset 6926 for lliurex-analytics-server/trunk/fuentes/debian/postinst
- Timestamp:
- Feb 26, 2018, 6:25:43 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-analytics-server/trunk/fuentes/debian/postinst
r6821 r6926 19 19 # for details, see http://www.debian.org/doc/debian-policy/ or 20 20 # the debian-policy package 21 do_backup(){ 22 USER=$1 23 PASS=$2 24 echo 'Doing backup into /etc/lliurex-analytics-server' 25 appdump="$(which mysqldump)" 26 if [ -z "$appdump" ]; then 27 echo "Mysqldump not found" 28 return 0 29 fi 30 date="$(date +%s)" 31 mkdir -p /etc/lliurex-analytics-server 32 $($appdump $USER $PASS analytics | gzip -9 > /etc/lliurex-analytics-server/dump.$date ) || true 33 } 21 34 do_dialog(){ 22 35 input=$(dialog \ … … 163 176 164 177 # UPDATE DB FROM OLDER VERSIONS 178 do_backup "$rootuser" "$rootpass" 179 165 180 is_version_1=0 166 181 is_version_1_4=0
Note: See TracChangeset
for help on using the changeset viewer.