Skip to content

Moodle tool that list in command line all the dirs where are plugins located. Useful for automate upgrades

License

Notifications You must be signed in to change notification settings

unesco-iesalc/listplugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

listplugins

Moodle tool that list in command line all the dirs where are plugins located. Useful for automate upgrades

This is an example of a bash script tha uses this plugin;

newmoodledir=/var/www/moodlenew
moodledir=/var/www/moodle
php $moodledir/local/listplugins/list.php --list >plugin.lst
while read line;do
newline=${line/$moodledir/$newmoodledir}
cp -r $line $newline
done < plugin.lst
cp $moodledir/config.php $newmoodledir/config.php
cp $moodledir/config-dist.php $newmoodledir/config-dist.php
mv $moodledir $moodledir.old
mv $newmoodledir $moodledir

About

Moodle tool that list in command line all the dirs where are plugins located. Useful for automate upgrades

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages