This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id newuser | |
usermod -aG vboxsf newuser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | |
BASE_DIR=/var/www/html | |
SUDO_USER='sudo -u site -H' | |
GIT="$SUDO_USER /usr/bin/git" | |
cd $BASE_DIR | |
$GIT fetch --all | |
$GIT reset --hard origin/master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | |
BASE_DIR=/var/www/yiiframework | |
GIT='/usr/bin/git' | |
cd $BASE_DIR | |
$GIT pull |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | |
BASE_DIR=/var/www/yiiframework | |
SUDO_USER='sudo -u www-data -H' | |
GIT="$SUDO_USER /usr/bin/git" | |
cd $BASE_DIR | |
$GIT pull |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace components\routes; | |
use yii\web\UrlRule; | |
use \app\models\Content; | |
use Yii; | |
/** | |
* @author Rom <[email protected]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# chkconfig: 35 99 99 | |
# description: Script for starting phantomjs. | |
# | |
. /etc/rc.d/init.d/functions | |
USER="phantomjs" |