Merge pull request #10456 from kroimon/skeleton_dir_config
Make skeleton directory configurable.
This commit is contained in:
commit
ddeb301ad6
|
@ -222,6 +222,11 @@ $CONFIG = array(
|
||||||
*/
|
*/
|
||||||
// "datadirectory" => "",
|
// "datadirectory" => "",
|
||||||
|
|
||||||
|
/* The directory where the skeleton files are located. These files will be copied to the data
|
||||||
|
* directory of new users. Leave empty to not copy any skeleton files.
|
||||||
|
*/
|
||||||
|
// "skeletondirectory" => "",
|
||||||
|
|
||||||
/* Enable maintenance mode to disable ownCloud
|
/* Enable maintenance mode to disable ownCloud
|
||||||
If you want to prevent users to login to ownCloud before you start doing some maintenance work,
|
If you want to prevent users to login to ownCloud before you start doing some maintenance work,
|
||||||
you need to set the value of the maintenance parameter to true.
|
you need to set the value of the maintenance parameter to true.
|
||||||
|
|
|
@ -208,7 +208,10 @@ class OC_Util {
|
||||||
* @param string $userDirectory
|
* @param string $userDirectory
|
||||||
*/
|
*/
|
||||||
public static function copySkeleton($userDirectory) {
|
public static function copySkeleton($userDirectory) {
|
||||||
OC_Util::copyr(\OC::$SERVERROOT.'/core/skeleton' , $userDirectory);
|
$skeletonDirectory = OC_Config::getValue('skeletondirectory', \OC::$SERVERROOT.'/core/skeleton');
|
||||||
|
if (!empty($skeletonDirectory)) {
|
||||||
|
OC_Util::copyr($skeletonDirectory , $userDirectory);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue