1
0

fix: all-in-one package

This commit is contained in:
2024-03-26 10:12:15 +08:00
parent 4e7bd18921
commit 1b6db2a8fc
6 changed files with 30 additions and 1415 deletions

View File

@@ -54,7 +54,7 @@ done
# Install redis db if not exist /usr/local/db
if [ ! -e "${RedisRootDir}/bin/redis-server" ]; then
cp -rf ${DependsRootDir}/redis /usr/local/adb
cp -rf ${DependsRootDir}/redis /usr/local/db
chmod +rx /usr/local/db/bin/*
if [ ! -e "${RedisConfDir}/redis.conf" ]; then
cp ${RedisConfDir}/default/redis.conf ${RedisConfDir};
@@ -62,6 +62,7 @@ if [ ! -e "${RedisRootDir}/bin/redis-server" ]; then
sed -i 's/replica-read-only yes/replica-read-only no/g' ${RedisConfDir}/redis.conf
fi
cp -f ${DependsRootDir}/systemd/adb.service ${SystemdRootDir}
systemctl enable adb.service
fi
if [ ! -e "${FERootDir}/config.js" ]; then
@@ -92,24 +93,18 @@ systemctl enable restagent.service
systemctl enable crontask.service
systemctl enable sshsvc.service
systemctl enable captrace.service
systemctl enable adb.service
systemctl daemon-reload
sudo systemctl stop nginx.service
sudo systemctl stop restagent.service
sudo systemctl stop crontask.service
sudo systemctl stop sshsvc.service
sudo systemctl stop captrace.service
sudo systemctl stop adb.service
sudo systemctl start nginx.service
sudo systemctl start adb.service
sudo systemctl start crontask.service
sudo systemctl start sshsvc.service
sudo systemctl start captrace.service
sudo systemctl start restagent.service
#sudo systemctl restart nginx.service
#sudo systemctl restart adb.service
#sudo systemctl restart crontask.service
#sudo systemctl restart sshsvc.service
#sudo systemctl restart captrace.service
#sudo systemctl restart restagent.service
systemctl stop nginx.service
systemctl stop restagent.service
systemctl stop crontask.service
systemctl stop sshsvc.service
systemctl stop captrace.service
systemctl stop adb.service
systemctl start nginx.service
systemctl start adb.service
systemctl start crontask.service
systemctl start sshsvc.service
systemctl start captrace.service
systemctl start restagent.service

File diff suppressed because it is too large Load Diff

View File

@@ -54,14 +54,15 @@ done
# Install redis db if not exist /usr/local/db
if [ ! -e "${RedisRootDir}/bin/redis-server" ]; then
cp -rf ${DependsRootDir}/redis /usr/local/adb
chmod +rx /usr/local/db/bin/*
cp -rf ${DependsRootDir}/redis /usr/local/db
chmod +rx ${RedisRootDir}/bin/*
if [ ! -e "${RedisConfDir}/redis.conf" ]; then
cp ${RedisConfDir}/default/redis.conf ${RedisConfDir};
else
sed -i 's/replica-read-only yes/replica-read-only no/g' ${RedisConfDir}/redis.conf
fi
cp -f ${DependsRootDir}/systemd/adb.service ${SystemdRootDir}
systemctl enable adb.service
fi
if [ ! -e "${FERootDir}/config.js" ]; then
@@ -92,24 +93,17 @@ systemctl enable restagent.service
systemctl enable crontask.service
systemctl enable sshsvc.service
systemctl enable captrace.service
systemctl enable adb.service
systemctl daemon-reload
sudo systemctl stop nginx.service
sudo systemctl stop restagent.service
sudo systemctl stop crontask.service
sudo systemctl stop sshsvc.service
sudo systemctl stop captrace.service
sudo systemctl stop adb.service
sudo systemctl start nginx.service
sudo systemctl start adb.service
sudo systemctl start crontask.service
sudo systemctl start sshsvc.service
sudo systemctl start captrace.service
sudo systemctl start restagent.service
#sudo systemctl restart nginx.service
#sudo systemctl restart adb.service
#sudo systemctl restart crontask.service
#sudo systemctl restart sshsvc.service
#sudo systemctl restart captrace.service
#sudo systemctl restart restagent.service
systemctl stop nginx.service
systemctl stop restagent.service
systemctl stop crontask.service
systemctl stop sshsvc.service
systemctl stop captrace.service
systemctl stop adb.service
systemctl start nginx.service
systemctl start adb.service
systemctl start crontask.service
systemctl start sshsvc.service
systemctl start captrace.service
systemctl start restagent.service