Pull from master

This commit is contained in:
jetli 2025-02-20 22:57:56 -08:00
parent 7976b5b7aa
commit b0607c6c8f

View File

@ -909,16 +909,17 @@ if [[ $USE_LOCAL_COMPONENT_VAL == true ]]; then
echo "Gitea data exist, skipping..."
else
echo "Gitea data not exist, copying..."
sudo rm -rf ${GITEA_DATA}/git
sudo rm -rf ${GITEA_DATA}/gitea
sudo rm -rf ${GITEA_DATA}/ssh
sudo mv data/git ${GITEA_DATA}/
sudo mv data/gitea ${GITEA_DATA}/
sudo mv data/ssh ${GITEA_DATA}/
sudo chown -R freedev:freedev ${GITEA_DATA}
sudo rm -rf ${WORKING_HOME}/freeleaps2-gitea/git
sudo rm -rf ${WORKING_HOME}/freeleaps2-gitea/gitea
sudo rm -rf ${WORKING_HOME}/freeleaps2-gitea/ssh
sudo mv data/git ${WORKING_HOME}/freeleaps2-gitea/
sudo mv data/gitea ${WORKING_HOME}/freeleaps2-gitea/
sudo mv data/ssh ${WORKING_HOME}/freeleaps2-gitea/
sudo chown -R yaojing:staff ${WORKING_HOME}/freeleaps2-gitea
# sudo chmod -R 750 ${WORKING_HOME}/freeleaps2-gitea
echo "Gitea data copying is done"
# Check if gitea data copied successfully
if [[ ! -d "${GITEA_DATA}/gitea" ]]; then
if [[ ! -d "${WORKING_HOME}/freeleaps2-gitea/gitea" ]]; then
echo "ERROR: Failed to copy gitea data."
exit 1
fi
@ -1042,6 +1043,7 @@ if [[ \$USE_LOCAL_COMPONENT_VAL == true ]]; then
export STRIPE_ACCOUNT_WEBHOOK_SECRET=whsec_PgPnkWGhEUiQfnV8aIb5Wmruz7XETJLm
export SITE_URL_ROOT=http://localhost
export FREELEAPS_DEVSVC_ENDPOINT=http://devsvc:8007/api/devsvc/
export FREELEAPS_CHAT_ENDPOINT=http://freeleaps-chat:8012/api/chat/
export FREELEAPS_CONTENT_ENDPOINT=http://content:8013/api/content/
export FREELEAPS_NOTIFICATION_ENDPOINT=http://notification:8003/api/notification/
export FREELEAPS_CENTRAL_STORAGE_ENDPOINT=http://central_storage:8005/api/central_storage/