mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-05 04:08:19 +00:00
fix permission script
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
#!/bin/sh
|
||||
# usage:
|
||||
#####################################################
|
||||
# directory
|
||||
[ "$1" = "" ] && return 0
|
||||
#!/usr/bin/env bash
|
||||
|
||||
find "$1" -type d -print0 | xargs -0 chmod 755
|
||||
find "$1" -type f -print0 | xargs -0 chmod 644
|
||||
# Fix file permission
|
||||
# Min. Requirement : GNU/Linux Ubuntu 14.04 & 16.04
|
||||
# Last Build : 17/07/2019
|
||||
# Author : ESLabs.ID (eslabs.id@gmail.com)
|
||||
# Since Version : 1.0.0
|
||||
|
||||
# directory
|
||||
[ "${1}" = "" ] && return 0
|
||||
|
||||
find "${1}" -type d -print0 | xargs -0 chmod 755
|
||||
find "${1}" -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
Reference in New Issue
Block a user