代码拉取完成,页面将自动刷新
#!/bin/sh
set -e
set -x
./download_cryptopp.sh
./switch_build.sh client
autoreconf --install
./configure CXXFLAGS="-DRESTORE_CLIENT" --enable-headless --enable-embedded-cryptopp --enable-httpserver
make -j4
LANG=en
cd urbackupclient/restorewww
npm ci
npm run build
cd ..
cd ..
mkdir -p restore_cd/urbackup/restore
cp urbackupclient/backup_client.db restore_cd/urbackup/
touch restore_cd/urbackup/new.txt
mkdir -p restore_cd/restorewww/
cp -R urbackupclient/restorewww/build/* restore_cd/restorewww/
cp urbackupclientbackend restore_cd/urbackuprestoreclient
cp urbackupserver/restore/$LANG/* restore_cd/urbackup/restore/
cp urbackupserver/restore/* restore_cd/urbackup/restore/ || true
chmod +x restore_cd/urbackup/restore/*.sh
strip restore_cd/urbackuprestoreclient
cd restore_cd
tar -cJf ../restore_cd_2_amd64.tar.xz *
if [ "x$SCP_RESTORE" = x1 ]
then
scp ../restore_cd_2_amd64.tar.xz 192.168.0.40:/var/www/ssl/
else
cp ../restore_cd_2_amd64.tar.xz /var/www/restore_cd_2_amd64.tar.xz
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。