Skip to content

Instantly share code, notes, and snippets.

@daylik
Created September 5, 2017 19:02
Show Gist options
  • Save daylik/9ed0cb06b0ee14aeaad249e35e8bbd20 to your computer and use it in GitHub Desktop.
Save daylik/9ed0cb06b0ee14aeaad249e35e8bbd20 to your computer and use it in GitHub Desktop.
#!/bin/bash
dr=$1
set_user=$2
set_group=$3
zDir="latest-ru_RU.zip"
wpInstall="https://ru.wordpress.org/"$zDir
eval "mkdir -p "$dr" && cd "$dr" && wget "$wpInstall" && unzip "$zDir" && cp -r "$dr"/wordpress/* "$dr" && rm -rf "$dr"/wordpress && rm -f -r "$zDir" && chown -R "$set_user":"$set_group" "$dr" && find "$dr" -type d -exec chmod 0755 {} \; && find "$dr" -type f -exec chmod 0644 {} \; && echo WordPress installation in directory "$dr" is done. "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment