File: refresh

package info (click to toggle)
wims-help 4.01-5
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 18,412 kB
  • sloc: python: 46; sh: 16; makefile: 7
file content (20 lines) | stat: -rwxr-xr-x 876 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

subdirs="developer example student teacher"

echo "+--------------------------------------------------------------------------+"
echo "| This script sould be launched after a fresh dowload of modules for wims. |"
echo "| to do this, you must have wims installed, go to the Inline maintenance   |"
echo "| facility, and update/download modules from the Wimedu repository.        |"
echo "+--------------------------------------------------------------------------|"
echo "| this script will populate the directory help/ with the following         |"
echo "| subdirectories:                                                          |"
for s in $subdirs; do
    echo "| - $s"
done
echo "+--------------------------------------------------------------------------+"

mkdir -p help
for s in $subdirs; do
    rsync -av /var/lib/wims/public_html/modules/help/$s help
done