mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	wger: fix python and pip install (#8295)
This commit is contained in:
		@@ -39,16 +39,18 @@ function update_script() {
 | 
			
		||||
    tar xzf "$temp_file"
 | 
			
		||||
    cp -rf wger-"$RELEASE"/* /home/wger/src
 | 
			
		||||
    cd /home/wger/src || exit
 | 
			
		||||
    $STD pip install -r requirements_prod.txt --ignore-installed
 | 
			
		||||
    $STD pip install -e .
 | 
			
		||||
    $STD python3 manage.py migrate
 | 
			
		||||
    $STD python3 manage.py collectstatic --no-input
 | 
			
		||||
    $STD yarn install
 | 
			
		||||
    $STD yarn build:css:sass
 | 
			
		||||
    $STD python3 manage.py collectstatic --noinput
 | 
			
		||||
    echo "${RELEASE}" >/opt/${APP}_version.txt
 | 
			
		||||
    msg_ok "Updated $APP to v${RELEASE}"
 | 
			
		||||
 | 
			
		||||
    msg_info "Starting $APP"
 | 
			
		||||
    msg_info "Starting Service"
 | 
			
		||||
    systemctl start wger
 | 
			
		||||
    msg_ok "Started $APP"
 | 
			
		||||
    msg_ok "Started Service"
 | 
			
		||||
 | 
			
		||||
    msg_info "Cleaning Up"
 | 
			
		||||
    rm -rf "$temp_file"
 | 
			
		||||
 
 | 
			
		||||
@@ -42,7 +42,7 @@ curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.
 | 
			
		||||
tar xzf "$RELEASE".tar.gz
 | 
			
		||||
mv wger-"$RELEASE" /home/wger/src
 | 
			
		||||
cd /home/wger/src || exit
 | 
			
		||||
$STD pip install -r requirements_prod.txt
 | 
			
		||||
$STD pip install -r requirements_prod.txt --ignore-installed
 | 
			
		||||
$STD pip install -e .
 | 
			
		||||
$STD wger create-settings --database-path /home/wger/db/database.sqlite
 | 
			
		||||
sed -i "s#home/wger/src/media#home/wger/media#g" /home/wger/src/settings.py
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user