sudo apt-get purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n -1)
Остается только одно ядро, пользуюсь еще с версии 12.04
sudo apt-get purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n -1)
iptables -A OUTPUT -p tcp -s 149.10.10.10 ! -d 149.10.10.10 --dport 25 --syn -m owner --uid-owner 93 -j ACCEPT
iptables -A OUTPUT -p tcp -s 149.10.10.10 ! -d 149.10.10.10 --dport 25 --syn -j DROP
cp etc/ispmgr.db /root/isp.db (на всякий случай)
ATTACH DATABASE '/root/backup/etc/ispmgr.db' as back;
delete from db_assign;
INSERT INTO db_assign (id, name, unaccounted, users, db_server) SELECT back.db_assign.id, back.db_assign.name, back.db_assign.unaccounted, back.db_assign.users, back.db_assign.db_server from back.db_assign;
echo "INSERT INTO email (id, name, domain, password, depr_password, maxsize, used, path, active, int_suspend, dontsave, note, tag) VALUES ('1', 'username', '22', '', '', 0, 0, '/var/www/absteny/data/email/example.com/username', 'on', 'off', 'off', '', 1234567890);" | sqlite3 ispmgr.db && echo OK
let counter=1
for i in $(cat /etc/dovecot/dovecot.passwd | awk -F : '{print $1}'); do echo "INSERT INTO email (id, name, domain, password, depr_password, maxsize, used, path, active, int_suspend, dontsave, note, tag) VALUES ('$counter', '$i', '2', 'Efdfdfdfdfdfd==', '', 0, 0, '/var/www/user/data/email/domain.info/`echo $i | cut -d @ -f 1`', 'on', 'off', 'off', '', 56290252);" | sqlite3 ispmgr.db && echo OK && let counter=counter+1; done
make -C /usr/ports/databases/mysql51-server/ WITH_CHARSET=cp1251 WITH_COLLATION=cp1251_general_ci
make -C /usr/ports/databases/mysql51-server/ -DFORCE_PKG_REGISTER install
wget https://dev.mysql.com/get/mysql-apt-config_0.8.1-1_all.deb
dpkg -i mysql-apt-config_0.8.1-1_all.deb
apt-get update
apt-get install mysql-server
W: There is no public key available for the following key IDs:
9D6D8F6BC857C906
W: There is no public key available for the following key IDs:
7638D0442B90D010
apt-get install debian-archive-keyring debian-keyring
ls *.sql | while read dbname; do mysql $(basename $dbname .sql) < $dbname ; done
wget -crm -np -nH ftp://example.com/ --user user --password ****** -P /var/www/username/data/www/example.com/
/usr/local/mgr5/sbin/mgrctl -m ispmgr session.newkey username=root key=pheex1ja8Shezieneaxu
?func=auth&username=root&key=pheex1ja8Shezieneaxu&checkcookie=no
service mariadb stop
cp -Rp /var/lib/mysql /var/lib/mysql.bak
service mariadb start
mysql -e 'show tables in blog;' | tail -n +2 | xargs -I '{}' echo "alter table {} engine=InnoDB;" > alter-table.sql
mysql blog < alter-table.sql