1
0
Fork 0
This commit is contained in:
VirtuBox 2019-05-02 16:33:46 +02:00
parent 63d48eebeb
commit b9570a0edf
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 9 additions and 9 deletions

View File

@ -11,7 +11,7 @@ if [ "$(id -u)" != "0" ]; then
fi
transfer_vtbox_net() {
{ curl --progress-bar --upload-file "$1" https://transfer.vtbox.net/$(basename $1) && echo ""; } | tee -a $HOME/.transfer.log && echo ""
{ curl --progress-bar --upload-file "$1" https://transfer.vtbox.net/$(basename "$1") && echo ""; } | tee -a $HOME/.transfer.log && echo ""
}
compress_pigz() {
@ -23,15 +23,15 @@ decompress_pigz() {
}
update_git_mybashrc() {
if [ -d $HOME/.mybashrc/.git ]; then
git -C $HOME/.mybashrc pull -q
if [ -d "$HOME/.mybashrc/.git" ]; then
git -C "$HOME/.mybashrc" pull -q
$HOME/.mybashrc/setup.sh > /dev/null 2>&1
fi
}
EE_MYSQL_OPTIMIZATION() {
if [ -f $HOME/.my.cnf ]; then
if [ -f "$HOME/.my.cnf" ]; then
/usr/bin/mysqlcheck -Aos --auto-repair
elif [ -f /etc/psa/.psa.shadow ]; then
MYSQL_PWD="$(cat /etc/psa/.psa.shadow)" /usr/bin/mysqlcheck -Aos -uadmin --auto-repair
@ -53,7 +53,7 @@ LIST_BY_SIZE() {
}
EE_DOCKER_SETUP() {
if [ ! -d $HOME/.ee ]; then
if [ ! -d "$HOME/.ee" ]; then
mkdir $HOME/.ee
fi
curl -fsSL get.docker.com -o $HOME/.ee/get-docker.sh
@ -90,8 +90,8 @@ ffmpeg_start_time() {
echo "example : ffmpeg-cut-start 00:34:24.85 file.mp4 300"
else
FFMPEG_ARGS="-ss "$2" -i "$1""
if [ "$3" ]; then
FFMPEG_ARGS="-ss \"$2\" -i \"$1\""
if [ -n "$3" ]; then
FFMPEG_ARGS="$FFMPEG_ARGS -time $3 -c copy -movflags +faststart ${1%.mp4}-output.mp4"
else
FFMPEG_ARGS="$FFMPEG_ARGS -c copy -movflags +faststart ${1%.mp4}-output.mp4"
@ -275,11 +275,11 @@ _WP_PERMISSIONS() {
}
_PERM_FILES() {
find -type f -exec chmod "$1" {} \;
find . -type f -exec chmod "$1" {} \;
}
_PERM_FOLDER() {
find -type d -exec chmod "$1" {} \;
find . -type d -exec chmod "$1" {} \;
}
_FIX_NETDATA() {