Browse Source

+ winter restore perms quick helper

* wordpress quick script moved into subfolder
master
dimti 1 week ago
parent
commit
ed6c2ee369
  1. 8
      winter/quick/_settings.sh.example
  2. 29
      winter/quick/restore-perms.sh.example
  3. 0
      winter/quick/tmp/.gitignore
  4. 0
      wordpress/.gitignore-example
  5. 0
      wordpress/quick/.gitignore
  6. 0
      wordpress/quick/additional/non-upstream-and-merged-to-develop-branches.sh.example
  7. 0
      wordpress/quick/bump.sh.example
  8. 0
      wordpress/quick/create-config.sh.example
  9. 0
      wordpress/quick/local/deactivate-unnecessary-plugins.sh.example
  10. 0
      wordpress/quick/local/replace-domain.sh.example
  11. 0
      wordpress/quick/restore-perms-light.sh.example
  12. 0
      wordpress/quick/restore-perms.sh.example
  13. 0
      wordpress/quick/settings.sh.example
  14. 0
      wordpress/quick/sync/.my.cnf.example
  15. 0
      wordpress/quick/sync/import-prod-database-to-local.sh.example
  16. 0
      wordpress/quick/sync/sync-uploads-from-prod-to-local.sh.example
  17. 0
      wordpress/quick/tmp/.gitignore
  18. 0
      wordpress/wp-content/upgrade/.gitignore
  19. 2
      wordpress/wp-content/uploads/.gitignore

8
winter/quick/_settings.sh.example

@ -0,0 +1,8 @@
#!/bin/bash
SETTINGS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# exporting variables dot not effect to visibility for other scripts - all variables is visible
export TMP_DIR=$SETTINGS_SCRIPT_DIR/tmp
export THEME=demo

29
winter/quick/restore-perms.sh.example

@ -0,0 +1,29 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. "$SCRIPT_DIR/_settings.sh" || {
echo "no settings" && exit 1
}
APP_DIR="${SCRIPT_DIR}/.."
PLUGINS=(winter)
THEME_DIRS=(layouts pages partials)
export WEB_GID=33
perms() {
sudo chown -R $UID:$WEB_GID "$1"
sudo chmod -R g+rwx "$1"
}
perms "${APP_DIR}/storage"
perms "${APP_DIR}/bootstrap/cache"
for DIR in "${THEME_DIRS[@]}"; do
perms "${APP_DIR}/themes/$THEME/$DIR"
done
for DIR in "${PLUGINS[@]}"; do
perms "${APP_DIR}/plugins/$DIR"
done

0
quick/tmp/.gitignore → winter/quick/tmp/.gitignore

0
.gitignore-example → wordpress/.gitignore-example

0
quick/.gitignore → wordpress/quick/.gitignore

0
quick/additional/non-upstream-and-merged-to-develop-branches.sh.example → wordpress/quick/additional/non-upstream-and-merged-to-develop-branches.sh.example

0
quick/bump.sh.example → wordpress/quick/bump.sh.example

0
quick/create-config.sh.example → wordpress/quick/create-config.sh.example

0
quick/local/deactivate-unnecessary-plugins.sh.example → wordpress/quick/local/deactivate-unnecessary-plugins.sh.example

0
quick/local/replace-domain.sh.example → wordpress/quick/local/replace-domain.sh.example

0
quick/restore-perms-light.sh.example → wordpress/quick/restore-perms-light.sh.example

0
quick/restore-perms.sh.example → wordpress/quick/restore-perms.sh.example

0
quick/settings.sh.example → wordpress/quick/settings.sh.example

0
quick/sync/.my.cnf.example → wordpress/quick/sync/.my.cnf.example

0
quick/sync/import-prod-database-to-local.sh.example → wordpress/quick/sync/import-prod-database-to-local.sh.example

0
quick/sync/sync-uploads-from-prod-to-local.sh.example → wordpress/quick/sync/sync-uploads-from-prod-to-local.sh.example

0
wp-content/upgrade/.gitignore → wordpress/quick/tmp/.gitignore

0
wp-content/uploads/.gitignore → wordpress/wp-content/upgrade/.gitignore

2
wordpress/wp-content/uploads/.gitignore

@ -0,0 +1,2 @@
*
!.gitignore
Loading…
Cancel
Save