Compare commits
5 Commits
5e821cf08c
...
7b07df0ec0
Author | SHA1 | Date | |
---|---|---|---|
7b07df0ec0 | |||
d4f132eebd | |||
b5d13cdf5b | |||
9d07b32e46 | |||
d2fd9a6a25 |
@ -16,7 +16,7 @@ for num4 in `seq 200 254`; do
|
||||
[[ $? -ne 0 ]] && break
|
||||
done
|
||||
|
||||
ip link add main2wrt link enp1s0 type macvlan mode bridge
|
||||
ip link add main2wrt link enp1s0 type macvlan mode bridge
|
||||
ip addr add $IP dev main2wrt
|
||||
ip link set main2wrt up
|
||||
ip route add 192.168.10.123 dev main2wrt
|
@ -19,15 +19,11 @@ cp -rf /etc/samba/smb.conf /opt/configs/conf/
|
||||
cp -rf /etc/network/interfaces /opt/configs/conf/
|
||||
cp -rf /root/.acme.sh/*ecc /opt/configs/acme/
|
||||
cp -rf /opt/scripts/update/restore.sh /opt/apps/syncthing/data/common/F_Backup/Linux/
|
||||
cp -rf /opt/apps/syncthing/data/common/A_Program/FRP /opt/apps/frp/frpc-xtcp-visitor
|
||||
scp -r /opt/configs/certs/ arm1:/opt/ > /dev/null &
|
||||
scp -r /opt/configs/certs/ arm2:/opt/ > /dev/null &
|
||||
scp -r /opt/configs/certs/ amd:/opt/ > /dev/null &
|
||||
wait
|
||||
cp -rf /opt/wd/25-Syncthing/common/A_Program/FRP/* /opt/apps/frp/frpc-xtcp-visitor
|
||||
|
||||
cd /opt && t=`date +%Y%m%dT%H%M%S`
|
||||
rsync --delete-after -avz --exclude=apps/localcr/B_koel/local/music apps configs logs scripts websites wd/72-Backups/VPS/ > /opt/logs/rsync/rsync_${t}.log
|
||||
rsync --delete-after -avz /opt/apps/syncthing/data/* wd/72-Backups/Syncthing/ > /opt/logs/rsync/rsync_${t}.log
|
||||
# rsync --delete-after -avz /opt/apps/syncthing/data/* wd/72-Backups/Syncthing/ > /opt/logs/rsync/rsync_${t}.log
|
||||
cd /opt/logs/rsync/
|
||||
let count=`ls | wc -l`
|
||||
if [[ $count -gt 10 ]]; then
|
||||
@ -45,6 +41,10 @@ fi
|
||||
if [[ `date +%d` == '01' ]]; then
|
||||
t=`date +%Y%m%d%H%M%S`
|
||||
tar -I pixz -cf /opt/wd/72-Backups/vps-${t}.tar.gz /opt/wd/72-Backups/VPS > /dev/null 2>&1
|
||||
scp -r /opt/configs/certs/ arm1:/opt/ 2>&1 /dev/null &
|
||||
scp -r /opt/configs/certs/ arm2:/opt/ 2>&1 /dev/null &
|
||||
scp -r /opt/configs/certs/ amd:/opt/ 2>&1 /dev/null &
|
||||
wait
|
||||
fi
|
||||
set +x
|
||||
echo End Time: `date`
|
||||
|
@ -6,12 +6,12 @@
|
||||
mv /opt/wd/99-Temp/shutdown /opt/wd/99-Temp/shutdown.old
|
||||
mv /opt/wd/99-Temp/reboot /opt/wd/99-Temp/reboot.old
|
||||
#==============================================================================
|
||||
ip link set enp1s0 promisc on
|
||||
ip link set enp2s0 promisc on
|
||||
ip link set wlx90de80ca01ec promisc on
|
||||
# ip link set enp1s0 promisc on
|
||||
# ip link set enp2s0 promisc on
|
||||
# ip link set wlx90de80ca01ec promisc on
|
||||
#==============================================================================
|
||||
sleep 20
|
||||
/usr/bin/bash /opt/scripts/update/macvlan.sh
|
||||
# sleep 20
|
||||
# /usr/bin/bash /opt/scripts/update/macvlan.sh
|
||||
#==============================================================================
|
||||
# nohup /usr/bin/bash /opt/scripts/update/jekyll_update.sh > /dev/null 2>&1 &
|
||||
# /usr/bin/mount -t ext4 -w UUID="b7c2c4b8-bfde-479b-80bb-655432a433b8" /opt/wd
|
||||
|
@ -18,3 +18,4 @@ let numOfAvatar=`ls /opt/apps/localcr/A_dashboard/local/icons/ | wc -l`
|
||||
let randNumber=$RANDOM%$numOfAvatar
|
||||
cp /opt/apps/localcr/A_dashboard/local/icons/${randNumber}.jpg /opt/websites/homepage/assets/img/logo.jpg
|
||||
|
||||
docker exec -u www-data nextcloud php /var/www/html/occ files:scan --all
|
||||
|
Reference in New Issue
Block a user