Kavita/copy_runtime.sh
Kizaing f7f983045d
Hotfix/docker file permissions (#350)
* Fixed file pathing for automated docker builds

* Added back in renaming the Kavita executable

* Testing new method for copying wwwroot folder

* Fixed file pathing

* Fixed pathing to test

* Potential fix for Docker file permissions

Co-authored-by: Chris Plaatjes <chris.p@boxbrite.com>
Co-authored-by: Boxbrite User <boxbrite@Rathalos.localdomain>
2021-06-30 16:46:05 -04:00

17 lines
359 B
Bash
Executable File

#!/bin/bash
#Copies the correct version of Kavita into the image
set -xv
if [ "$TARGETPLATFORM" == "linux/amd64" ]
then
tar xf /files/kavita-linux-x64.tar.gz -C /
elif [ "$TARGETPLATFORM" == "linux/arm/v7" ]
then
tar xf /files/kavita-linux-arm.tar.gz -C /
elif [ "$TARGETPLATFORM" == "linux/arm64" ]
then
tar xf /files/kavita-linux-arm64.tar.gz -C /
fi