mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Add xmlsec as dependency (#3762)
This commit is contained in:
		@@ -27,20 +27,24 @@ function update_script() {
 | 
				
			|||||||
    msg_error "No ${APP} Installation Found!"
 | 
					    msg_error "No ${APP} Installation Found!"
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					  if ! [[ $(dpkg -s python3-xmlsec 2>/dev/null) ]]; then
 | 
				
			||||||
 | 
					    $STD apt-get update
 | 
				
			||||||
 | 
					    $STD apt-get install -y python3-xmlsec
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
  if cd /opt/tandoor && git pull | grep -q 'Already up to date'; then
 | 
					  if cd /opt/tandoor && git pull | grep -q 'Already up to date'; then
 | 
				
			||||||
    msg_ok "There is currently no update available."
 | 
					    msg_ok "There is currently no update available."
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    msg_info "Updating ${APP} (Patience)"
 | 
					    msg_info "Updating ${APP} (Patience)"
 | 
				
			||||||
    export $(cat /opt/tandoor/.env | grep "^[^#]" | xargs)
 | 
					    export $(cat /opt/tandoor/.env | grep "^[^#]" | xargs)
 | 
				
			||||||
    cd /opt/tandoor/
 | 
					    cd /opt/tandoor/ || exit
 | 
				
			||||||
    $STD pip3 install -r requirements.txt
 | 
					    $STD pip3 install -r requirements.txt
 | 
				
			||||||
    $STD /usr/bin/python3 /opt/tandoor/manage.py migrate
 | 
					    $STD /usr/bin/python3 /opt/tandoor/manage.py migrate
 | 
				
			||||||
    $STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic --no-input
 | 
					    $STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic --no-input
 | 
				
			||||||
    $STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic_js_reverse
 | 
					    $STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic_js_reverse
 | 
				
			||||||
    cd /opt/tandoor/vue
 | 
					    cd /opt/tandoor/vue || exit
 | 
				
			||||||
    $STD yarn install
 | 
					    $STD yarn install
 | 
				
			||||||
    $STD yarn build
 | 
					    $STD yarn build
 | 
				
			||||||
    cd /opt/tandoor
 | 
					    cd /opt/tandoor || exit
 | 
				
			||||||
    $STD python3 version.py
 | 
					    $STD python3 version.py
 | 
				
			||||||
    systemctl restart gunicorn_tandoor
 | 
					    systemctl restart gunicorn_tandoor
 | 
				
			||||||
    msg_ok "Updated ${APP}"
 | 
					    msg_ok "Updated ${APP}"
 | 
				
			||||||
@@ -55,4 +59,4 @@ description
 | 
				
			|||||||
msg_ok "Completed Successfully!\n"
 | 
					msg_ok "Completed Successfully!\n"
 | 
				
			||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
 | 
					echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
 | 
				
			||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
 | 
					echo -e "${INFO}${YW} Access it using the following URL:${CL}"
 | 
				
			||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8002${CL}"
 | 
					echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8002${CL}"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,7 +38,8 @@ $STD apt-get install -y \
 | 
				
			|||||||
  python3 \
 | 
					  python3 \
 | 
				
			||||||
  python3-dev \
 | 
					  python3-dev \
 | 
				
			||||||
  python3-setuptools \
 | 
					  python3-setuptools \
 | 
				
			||||||
  python3-pip
 | 
					  python3-pip \
 | 
				
			||||||
 | 
					  python3-xmlsec
 | 
				
			||||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
 | 
					rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
 | 
				
			||||||
msg_ok "Setup Python3"
 | 
					msg_ok "Setup Python3"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user