Skip to content

Instantly share code, notes, and snippets.

@frame
Created July 11, 2019 16:39
Show Gist options
  • Save frame/19298dfaf36d489235d335a17586d1ed to your computer and use it in GitHub Desktop.
Save frame/19298dfaf36d489235d335a17586d1ed to your computer and use it in GitHub Desktop.
#!/bin/bash
target=package
if [[ -f $1 ]]; then
echo "unzipping ${1} to ${target}/"
rm -rf $target
unzip -q $1
cp -r public/themes/nowherians ${target}/themes/
cp -r public/plugins/Nowherians ${target}/plugins/
cp -r public/contents ${target}/
cp -r public/conf/config.php ${target}/conf/
cp -r public/cache/Releases ${target}/cache/
cp -r public/cache/devstatus.* ${target}/cache/
cp -r public/uploads ${target}/
cp -r public/.htaccess ${target}/
echo "# mv public public-3.x.x && mv ${target} public"
echo "https://x.x/utility/update"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment