mirror of
git://f0xx.org/android_cast
synced 2026-07-29 06:39:09 +03:00
This resolves stash replay conflicts and keeps the report/tag UI and backend endpoints aligned for the feature branch review. Co-authored-by: Cursor <cursoragent@cursor.com>
45 lines
1.3 KiB
Bash
Executable File
45 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
## FE - frontend mounts
|
|
[[ -z "$(mount | grep FE | grep f0xx)" ]] && sshfs foxx@f0xx.org:/etc/nginx/ tmp/FE_gentoo/etc/nginx/ -o -p 222
|
|
[[ -d "tmp/FE_gentoo/var/www/localhost/htdocs/android_cast/" && -d "tmp/FE_gentoo/var/www/localhost/htdocs/android_cast/" && -z "$(mount | grep FE | grep f0xx)" ]] && \
|
|
|
|
#sleep 5
|
|
## BE - backend - through jump server through FE
|
|
[ -z "${ARTC0_HOST}" ] && ARTC0_HOST="10.7.16.128"
|
|
#ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ProxyJump=foxx@f0xx.org -P 222 foxx@${ARTC0_HOST}
|
|
|
|
## check out the changes in the ~/.ssh/config
|
|
## and
|
|
## ssh -o 'ProxyJump=foxx@f0xx.org:222' 'foxx@10.7.16.128'
|
|
|
|
sleep 3
|
|
|
|
if [[ -z "$(mount | grep BE | grep etc | grep f0xx)" && -d "tmp/BE_alpine/etc/nginx" ]]; then
|
|
set -x
|
|
sshfs alpine-be:/etc/nginx tmp/BE_alpine/etc/nginx
|
|
set +x
|
|
fi
|
|
|
|
sleep 3
|
|
|
|
if [[ -z "$(mount | grep BE | grep var | grep f0xx)" && -d "tmp/BE_alpine/var/www/localhost/htdocs/apps" ]]; then
|
|
set -x
|
|
sshfs alpine-be:/var/www/localhost/htdocs/apps tmp/BE_alpine/var/www/localhost/htdocs/apps
|
|
set +x
|
|
fi
|
|
|
|
if [[ -z "$(mount | grep BE | grep etc | grep f0xx)" && -d "tmp/BE_alpine/etc/gitea" ]]; then
|
|
set -x
|
|
sshfs alpine-be:/etc/gitea tmp/BE_alpine/etc/gitea
|
|
set +x
|
|
fi
|
|
|
|
_umount() {
|
|
umount "${1}"
|
|
}
|
|
|
|
#_umount_fe {
|
|
# fe_eps=$(mount | grep FE | grep -e f0xx -w FE_gentoo )
|
|
#}
|
|
|