update_phanpy_local.sh 318 B

123456
  1. #!/bin/bash
  2. web_path=""
  3. curl -L https://github.com/cheeaun/phanpy/releases/latest/download/phanpy-dist.zip -o "$web_path/phanpy.zip"
  4. unzip "$web_path/phanpy.zip" -d "$web_path/phanpy"
  5. rsync -avh --delete --exclude=".htaccess" "$web_path/phanpy/" "$web_path/public_html"
  6. rm -r "$web_path/phanpy.zip" "$web_path/phanpy"