1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
--- a/mod/assignment/type/wims/wimsconf.php
+++ b/mod/assignment/type/wims/wimsconf.php
@@ -1,10 +1,6 @@
<?php /// Moodle-Wims Configuration File
-$CFG->wimshost="localhost"; // the IP address for the Wims server
-$CFG->wimsroot="wims"; // URL = "http://".$CFG->wimshost."/".$CFG->wimsroot
-$CFG->wimsRemoteUrl="localhost/"; // the external URL for Wims
-$CFG->protocol="localwims"; // the name of the configuration file for Wims
-// this file is in ${WIMS_HOME}/log/classes/.connections/ , with the following password.
-$CFG->passwims="azerty"; // a shared secret
+require('/etc/moodle/wimsconf.php.dpkg-dist');
+require('/etc/moodle/wimsconf.php');
?>
--- a/etc/moodle/wimsconf.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php /// Moodle-Wims Configuration File
-
-$CFG->wimshost="localhost"; // the IP address for the Wims server
-$CFG->wimsroot="wims"; // URL = "http://".$CFG->wimshost."/".$CFG->wimsroot
-$CFG->wimsRemoteUrl="https://wims.url.domain"; // the external URL for Wims
-$CFG->protocol="localwims"; // the name of the configuration file for Wims
-// this file is in ${WIMS_HOME}/log/classes/.connections/ , with the following password.
-$CFG->passwims="azerty"; // a shared secret
-
-?>
\ No newline at end of file
--- /dev/null
+++ b/etc/moodle/wimsconf.php.dpkg-dist
@@ -0,0 +1,10 @@
+<?php /// Moodle-Wims Configuration File
+
+$CFG->wimshost="localhost"; // the IP address for the Wims server
+$CFG->wimsroot="wims"; // URL = "http://".$CFG->wimshost."/".$CFG->wimsroot
+$CFG->wimsRemoteUrl="https://wims.url.domain"; // the external URL for Wims
+$CFG->protocol="localwims"; // the name of the configuration file for Wims
+// this file is in ${WIMS_HOME}/log/classes/.connections/ , with the following password.
+$CFG->passwims="azerty"; // a shared secret
+
+?>
\ No newline at end of file
|