ficxes
This commit is contained in:
parent
f18e8a6442
commit
deb8b15697
@ -28,7 +28,6 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -s https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
||||||
msg_info "Stopping services"
|
msg_info "Stopping services"
|
||||||
@ -39,7 +38,7 @@ function update_script() {
|
|||||||
cp /opt/${APP}/.env /opt/rxresume.env
|
cp /opt/${APP}/.env /opt/rxresume.env
|
||||||
res_tmp=$(mktemp)
|
res_tmp=$(mktemp)
|
||||||
rm -rf /opt/${APP}
|
rm -rf /opt/${APP}
|
||||||
wget -q "https://github.com/AmruthPillai/Reactive-Resume/archive/refs/tags/v${RELEASE}.zip" -O $res_tmp
|
curl -fsSL "https://github.com/AmruthPillai/Reactive-Resume/archive/refs/tags/v${RELEASE}.zip" -O $res_tmp
|
||||||
unzip -q $res_tmp
|
unzip -q $res_tmp
|
||||||
mv ${APP}-${RELEASE}/ /opt/${APP}
|
mv ${APP}-${RELEASE}/ /opt/${APP}
|
||||||
cd /opt/${APP}
|
cd /opt/${APP}
|
||||||
@ -56,7 +55,7 @@ function update_script() {
|
|||||||
msg_info "Updating Minio"
|
msg_info "Updating Minio"
|
||||||
systemctl stop minio
|
systemctl stop minio
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget -q https://dl.min.io/server/minio/release/linux-amd64/minio.deb
|
curl -fsSL https://dl.min.io/server/minio/release/linux-amd64/minio.deb -o minio.deb
|
||||||
$STD dpkg -i minio.deb
|
$STD dpkg -i minio.deb
|
||||||
msg_ok "Updated Minio"
|
msg_ok "Updated Minio"
|
||||||
|
|
||||||
@ -65,8 +64,8 @@ function update_script() {
|
|||||||
cp /opt/browserless/.env /opt/browserless.env
|
cp /opt/browserless/.env /opt/browserless.env
|
||||||
rm -rf browserless
|
rm -rf browserless
|
||||||
brwsr_tmp=$(mktemp)
|
brwsr_tmp=$(mktemp)
|
||||||
TAG=$(curl -s https://api.github.com/repos/browserless/browserless/tags?per_page=1 | grep "name" | awk '{print substr($2, 3, length($2)-4) }')
|
TAG=$(curl -fsSL https://api.github.com/repos/browserless/browserless/tags?per_page=1 | grep "name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
wget -q https://github.com/browserless/browserless/archive/refs/tags/v${TAG}.zip -O $brwsr_tmp
|
curl -fsSL https://github.com/browserless/browserless/archive/refs/tags/v${TAG}.zip -O $brwsr_tmp
|
||||||
unzip -q $brwsr_tmp
|
unzip -q $brwsr_tmp
|
||||||
mv browserless-${TAG}/ /opt/browserless
|
mv browserless-${TAG}/ /opt/browserless
|
||||||
cd /opt/browserless
|
cd /opt/browserless
|
||||||
|
@ -27,7 +27,7 @@ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.co
|
|||||||
echo "YES" | /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh &>/dev/null
|
echo "YES" | /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh &>/dev/null
|
||||||
$STD apt-get install -y postgresql-16 nodejs
|
$STD apt-get install -y postgresql-16 nodejs
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget -q https://dl.min.io/server/minio/release/linux-amd64/minio.deb
|
curl -fsSL https://dl.min.io/server/minio/release/linux-amd64/minio.deb -o minio.deb
|
||||||
$STD dpkg -i minio.deb
|
$STD dpkg -i minio.deb
|
||||||
|
|
||||||
msg_info "Setting up Database"
|
msg_info "Setting up Database"
|
||||||
@ -46,9 +46,9 @@ ACCESS_TOKEN=$(openssl rand -base64 48)
|
|||||||
REFRESH_TOKEN=$(openssl rand -base64 48)
|
REFRESH_TOKEN=$(openssl rand -base64 48)
|
||||||
CHROME_TOKEN=$(openssl rand -hex 32)
|
CHROME_TOKEN=$(openssl rand -hex 32)
|
||||||
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
||||||
TAG=$(curl -s https://api.github.com/repos/browserless/browserless/tags?per_page=1 | grep "name" | awk '{print substr($2, 3, length($2)-4) }')
|
TAG=$(curl -fsSL https://api.github.com/repos/browserless/browserless/tags?per_page=1 | grep "name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -fsSL https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
wget -q "https://github.com/AmruthPillai/Reactive-Resume/archive/refs/tags/v${RELEASE}.zip"
|
curl -fsSL "https://github.com/AmruthPillai/Reactive-Resume/archive/refs/tags/v${RELEASE}.zip" -o v${RELEASE}.zip
|
||||||
unzip -q v${RELEASE}.zip
|
unzip -q v${RELEASE}.zip
|
||||||
mv ${APPLICATION}-${RELEASE}/ /opt/${APPLICATION}
|
mv ${APPLICATION}-${RELEASE}/ /opt/${APPLICATION}
|
||||||
cd /opt/${APPLICATION}
|
cd /opt/${APPLICATION}
|
||||||
@ -65,7 +65,7 @@ msg_ok "Installed ${APPLICATION}"
|
|||||||
|
|
||||||
msg_info "Installing Browserless (Patience)"
|
msg_info "Installing Browserless (Patience)"
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget -q https://github.com/browserless/browserless/archive/refs/tags/v${TAG}.zip
|
curl -fsSL https://github.com/browserless/browserless/archive/refs/tags/v${TAG}.zip -o v${TAG}.zip
|
||||||
unzip -q v${TAG}.zip
|
unzip -q v${TAG}.zip
|
||||||
mv browserless-${TAG} /opt/browserless
|
mv browserless-${TAG} /opt/browserless
|
||||||
cd /opt/browserless
|
cd /opt/browserless
|
||||||
|
Loading…
x
Reference in New Issue
Block a user