/usr/share/fusionforge/plugins/mediawiki/bin/create_links.sh is in fusionforge-plugin-mediawiki 6.0.5-2ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 | #!/bin/sh
scriptdir=`dirname $0`
absolutedir=`cd $scriptdir;pwd`
plugindir=`dirname $absolutedir`
if [ -e /usr/share/codendi ]
then
OLDPACKAGE=codendi
else
OLDPACKAGE=gforge
fi
LINKS=$plugindir/packaging/links/plugin-mediawiki
cat $LINKS | sed "s/@OLDPACKAGE@/$OLDPACKAGE/g" | while read src dest
do
if [ ! -e /$src ]
then
newsrc=`echo $src | sed 's/mediawiki/mediawiki115/'`
if [ -e "/$newsrc" ]
then
src=$newsrc
fi
fi
if [ -e "/$src" ]
then
if [ -e /usr/share/codendi ]
then
dest=`echo $dest | sed 's/gforge/codendi/'`
fi
if [ ! -e /$dest ]
then
echo "Symlinking /$dest -> /$src"
ln -s /$src /$dest
fi
fi
done
|