diff --git a/backup/DEBIAN-SELFCARE-PROXY.tgz b/backup/DEBIAN-SELFCARE-PROXY.tgz new file mode 100644 index 0000000..b8bb80c Binary files /dev/null and b/backup/DEBIAN-SELFCARE-PROXY.tgz differ diff --git a/backup/centosInstallPkg/AGT_billing_installer.tgz b/backup/centosInstallPkg/AGT_billing_installer.tgz new file mode 100644 index 0000000..97bdc7b Binary files /dev/null and b/backup/centosInstallPkg/AGT_billing_installer.tgz differ diff --git a/backup/fpm_make.rpm b/backup/fpm_make.rpm new file mode 100755 index 0000000..580538b --- /dev/null +++ b/backup/fpm_make.rpm @@ -0,0 +1,27 @@ +#!/bin/bash + +cd ../build +rm -rf * +test -d debian && rm -rf debian/* || mkdir -p debian +#mkdir -p debian/DEBIAN +mkdir -p debian/usr/local/bin +mkdir -p debian/usr/local/etc/udm/default +mkdir -p debian/usr/local/etc/udm/license +mkdir -p debian/usr/local/etc/udm/tls +mkdir -p debian/lib/systemd/system + +cp ../udm debian/usr/local/bin/udm + +cp -rf ../pkg/conf/* debian/usr/local/etc/udm/default +cp -rf ../pkg/conf/tls debian/usr/local/etc/udm/default + +cp ../pkg/udm.service debian/lib/systemd/system + +#cp ../pkg/control debian/DEBIAN +#cp ../pkg/prerm debian/DEBIAN +#cp ../pkg/postinst debian/DEBIAN + +#fakeroot dpkg-deb --build debian +#mv debian.deb debian/pcf-1.1.5.amd64.deb +fpm -s dir -t rpm -C debian -n UDM -v 2.2312.10 --iteration 20231223 --prefix / --after-install ../pkg/postinst --pre-uninstall ../pkg/prerm + diff --git a/backup/pkg.tgz b/backup/pkg.tgz new file mode 100644 index 0000000..5b5d408 Binary files /dev/null and b/backup/pkg.tgz differ diff --git a/backup/pkg/canal.service b/backup/pkg/canal.service new file mode 100755 index 0000000..8a319ce --- /dev/null +++ b/backup/pkg/canal.service @@ -0,0 +1,10 @@ +[Service] +Type=idle +ExecStart=/usr/local/bin/canal > /dev/null 2>&1 & +Restart=always +RestartSec=3 +StandardOutput=null + +[Install] +WantedBy=multi-user.target + diff --git a/backup/pkg/conf/config.yaml b/backup/pkg/conf/config.yaml new file mode 100644 index 0000000..d164926 --- /dev/null +++ b/backup/pkg/conf/config.yaml @@ -0,0 +1,50 @@ +log: + level: info +mysqlDb: + addr: 192.168.1.211:3306 + username: boss + password: mysqlboss +redisDb: + netType: unix + addr: /var/run/kvdb.sock +telnetServer: + addr: 192.168.7.90:4100 +rest: + enabled: true + httpAddr: 192.168.7.90:8080 + emsAddr: 192.168.7.92:4999 + locRzIp: 192.168.7.90 + locRzPort: 4900 + ocsRzIp: 192.168.7.90 + ocsRzPort: 4951 + enableNotification: true +canalServer: + enabled: true + addr: 192.168.1.211:3306 + username: canal + password: canal + reinit: false + flushBeforeInit: true + standalone: true +cronCfg: + enabled: true + clrExp: '0 20 5 1,11,21 * ?' + ntfSms: '*/3 * * * * ?' +provision: + enabled: true + interval: 6 + readTimout: 5 + emsIp: 10.10.1.71 + emsPort: 4999 + username: manager + password: manager + connectHss: 'connect hlr -srvip 10.10.1.104 -passwd 123456' + connectAuc: 'connect auc -srvip 10.10.1.104 -passwd 123456' + connectVms: 'connect vms -srvip 10.10.1.104 -passwd 123456' + disconnectHss: 'disconnect hlr' + disconnectVms: 'disconnect vms' + ssEntryIdInCrm: 1049 +bundleUsageNotify: + voice75Percent: false + data75Percent: true + sms75Percent: false diff --git a/backup/pkg/control b/backup/pkg/control new file mode 100755 index 0000000..6452240 --- /dev/null +++ b/backup/pkg/control @@ -0,0 +1,10 @@ +Package: canal +Version: 1.0.1-20240812 +Section: net +Priority: optional +Architecture: amd64 +Essential: no +Depends: +Conflicts: canal +Maintainer: CoreNet +Description: CoreNet Software diff --git a/backup/pkg/make.deb b/backup/pkg/make.deb new file mode 100755 index 0000000..1a4791a --- /dev/null +++ b/backup/pkg/make.deb @@ -0,0 +1,25 @@ +#!/bin/bash + +#cd ../build + +test -d debian && rm -rf debian/* || mkdir -p debian +mkdir -p debian/DEBIAN +mkdir -p debian/usr/local/bin +mkdir -p debian/usr/local/etc/canal/default +#mkdir -p debian/usr/local/etc/canal/license +mkdir -p debian/lib/systemd/system + +cp ../proxy debian/usr/local/bin/canal + +cp -rf ./conf/* debian/usr/local/etc/canal/default + +cp ./canal.service debian/lib/systemd/system + +cp ./control debian/DEBIAN +cp ./prerm debian/DEBIAN +cp ./postinst debian/DEBIAN + +fakeroot dpkg-deb --build debian +mv debian.deb debian/canal-1.0.1-ub22.deb +#mv debian.deb debian/canal-1.0.1.amd64.deb + diff --git a/backup/pkg/postinst b/backup/pkg/postinst new file mode 100755 index 0000000..3c77665 --- /dev/null +++ b/backup/pkg/postinst @@ -0,0 +1,7 @@ +#!/bin/bash + +test ! -f /usr/local/etc/canal/config.json && cp -rf /usr/local/etc/canal/default/* /usr/local/etc/canal + +systemctl enable canal + +exit 0 diff --git a/backup/pkg/prerm b/backup/pkg/prerm new file mode 100755 index 0000000..37d7fa8 --- /dev/null +++ b/backup/pkg/prerm @@ -0,0 +1,6 @@ +#!/bin/bash + +# Commands to be run before uninstall of the package + +systemctl disable canal +