Skip to content

Commit

Permalink
customise nginx-module-vts statistics html CSS colors
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed May 29, 2015
1 parent fd6ad7c commit a175751
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions centmin.sh
Expand Up @@ -1539,8 +1539,14 @@ if [[ "$1" = 'install' ]]; then
# updated method for cmdir and centmin shorcuts
sed -i '/cmdir=/d' /root/.bashrc
sed -i '/centmin=/d' /root/.bashrc
echo -e "pushd $SCRIPT_DIR" > /usr/bin/cmdir
echo -e "pushd $SCRIPT_DIR; bash centmin.sh" > /usr/bin/centmin
cat > "/usr/bin/cmdir" << EOF
#!/bin/bash
pushd $SCRIPT_DIR
EOF
cat > "/usr/bin/centmin" << EOF
#!/bin/bash
pushd $SCRIPT_DIR; bash centmin.sh
EOF
chmod 0700 /usr/bin/cmdir
chmod 0700 /usr/bin/centmin

Expand Down Expand Up @@ -1648,8 +1654,14 @@ else
# updated method for cmdir and centmin shorcuts
sed -i '/cmdir=/d' /root/.bashrc
sed -i '/centmin=/d' /root/.bashrc
echo -e "pushd $SCRIPT_DIR" > /usr/bin/cmdir
echo -e "pushd $SCRIPT_DIR; bash centmin.sh" > /usr/bin/centmin
cat > "/usr/bin/cmdir" << EOF
#!/bin/bash
pushd $SCRIPT_DIR
EOF
cat > "/usr/bin/centmin" << EOF
#!/bin/bash
pushd $SCRIPT_DIR; bash centmin.sh
EOF
chmod 0700 /usr/bin/cmdir
chmod 0700 /usr/bin/centmin

Expand Down

0 comments on commit a175751

Please sign in to comment.