fix strip component

This commit is contained in:
CanbiZ 2025-03-11 15:11:37 +01:00
parent adf595af24
commit d1fdcd4347

View File

@ -102,7 +102,7 @@ LATEST_FILE=$(curl -s "https://download.seadrive.org/" | \
sort -r | head -n1 | awk '{print $2}')
$STD su - seafile -c "wget -qc https://s3.eu-central-1.amazonaws.com/download.seadrive.org/$LATEST_FILE"
$STD su - seafile -c "tar -xzf $LATEST_FILE -C /opt/seafile/"
$STD su - seafile -c "tar -xzf $LATEST_FILE --strip-components=1 -C /opt/seafile/"
$STD su - seafile -c "expect <<EOF
spawn bash /opt/seafile/setup-seafile-mysql.sh
expect {