134 |
/usr/sbin/e-smith/fwconsole ma downloadinstall ucp 2>/dev/null |
/usr/sbin/e-smith/fwconsole ma downloadinstall ucp 2>/dev/null |
135 |
|
|
136 |
exit 0 |
exit 0 |
137 |
|
diff -Nur --no-dereference smeserver-freepbx-14.old/root/etc/e-smith/events/actions/freepbx-checkinstall-backup smeserver-freepbx-14/root/etc/e-smith/events/actions/freepbx-checkinstall-backup |
138 |
|
--- smeserver-freepbx-14.old/root/etc/e-smith/events/actions/freepbx-checkinstall-backup 2022-12-14 23:37:45.782000000 -0500 |
139 |
|
+++ smeserver-freepbx-14/root/etc/e-smith/events/actions/freepbx-checkinstall-backup 2022-12-15 02:05:02.315000000 -0500 |
140 |
|
@@ -56,6 +56,16 @@ |
141 |
|
if [ -z $backupid ] ; then |
142 |
|
backupid=$(/usr/bin/uuidgen) |
143 |
|
echo "creating new backup id $backupid" |
144 |
|
+ |
145 |
|
+ mysql -e "use $DBNAME; CREATE TABLE IF NOT EXISTS \`kvstore_FreePBX_modules_Backup\` ( |
146 |
|
+ \`key\` char(255) NOT NULL, |
147 |
|
+ \`val\` varchar(4096) DEFAULT NULL, |
148 |
|
+ \`type\` char(16) DEFAULT NULL, |
149 |
|
+ \`id\` char(255) DEFAULT NULL, |
150 |
|
+ UNIQUE KEY \`uniqueindex\` (\`key\`(190),\`id\`(190)), |
151 |
|
+ KEY \`keyindex\` (\`key\`(190)), |
152 |
|
+ KEY \`idindex\` (\`id\`(190)) |
153 |
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;" |
154 |
|
|
155 |
|
##TODO SELECT * FROM `kvblobstore` WHERE `uuid` LIKE 'a9fe727b-fc4c-40c4-ad45-bcabd075302a' |
156 |
|
### TODO : list modules enabled and populate |
157 |
|
@@ -155,7 +165,7 @@ |
158 |
|
#('backup_items', 'a9fe727b-fc4c-40c4-ad45-bcabd075302a', 'blob', '$backupid') |
159 |
|
#ON DUPLICATE KEY UPDATE val=VALUES(val);" |
160 |
|
|
161 |
|
-else |
162 |
|
+elif [[ $version -lt 15 ]] ; then |
163 |
|
# set first backup as the one for SME way |
164 |
|
# set destination |
165 |
|
mysql -e "use $DBNAME;UPDATE backup_server_details set value = '/home/e-smith/files/freepbx' WHERE server_id = 1;" |
166 |
diff -Nur --no-dereference smeserver-freepbx-14.old/root/etc/e-smith/templates/etc/logrotate.d/vsftpd/10info smeserver-freepbx-14/root/etc/e-smith/templates/etc/logrotate.d/vsftpd/10info |
diff -Nur --no-dereference smeserver-freepbx-14.old/root/etc/e-smith/templates/etc/logrotate.d/vsftpd/10info smeserver-freepbx-14/root/etc/e-smith/templates/etc/logrotate.d/vsftpd/10info |
167 |
--- smeserver-freepbx-14.old/root/etc/e-smith/templates/etc/logrotate.d/vsftpd/10info 1969-12-31 19:00:00.000000000 -0500 |
--- smeserver-freepbx-14.old/root/etc/e-smith/templates/etc/logrotate.d/vsftpd/10info 1969-12-31 19:00:00.000000000 -0500 |
168 |
+++ smeserver-freepbx-14/root/etc/e-smith/templates/etc/logrotate.d/vsftpd/10info 2022-12-15 01:53:26.738000000 -0500 |
+++ smeserver-freepbx-14/root/etc/e-smith/templates/etc/logrotate.d/vsftpd/10info 2022-12-15 01:53:26.738000000 -0500 |