This file contains 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
MOODLE_HOME="/var/www/moodle" | |
MOODLE_DATA="/var/www/moodle/moodledata" | |
sudo mkdir -p $MOODLE_DATA/lang/pt_br | |
cd $MOODLE_HOME | |
sudo wget https://github.com/mconf/moodle-mod_bigbluebuttonbn/archive/v2.2-elos.zip | |
sudo unzip v2.2-elos.zip | |
sudo mv moodle-mod_bigbluebuttonbn-2.2-elos mod/bigbluebuttonbn | |
cp mod/bigbluebuttonbn/lang/pt_br/bigbluebuttonbn.php $MOODLE_DATA/lang/pt_br/bigbluebuttonbn.php |
This file contains 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
module God | |
module Conditions | |
class RestartFileTouched < PollCondition | |
attr_accessor :restart_file | |
def initialize | |
super | |
end | |
def process_start_time | |
Time.parse(`ps -o lstart -p #{self.watch.pid} --no-heading`) |