Created
July 11, 2019 16:39
-
-
Save frame/19298dfaf36d489235d335a17586d1ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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