src/packaging/install/web-apache2 -text
src/packaging/install/web-apache2-vhosts -text
src/packaging/links/common -text
+src/packaging/links/db-postgresql -text
src/packaging/links/web-apache2 -text
src/packaging/readme/web-apache2 -text
src/plugins/README -text
src/utils/forge_get_config -text
src/utils/forge_make_admin -text
src/utils/forge_set_password -text
+src/utils/forge_wrapper -text
src/utils/fusionforge-shell-postgresql.spec -text
src/utils/include.pl svneol=native#text/x-perl
src/utils/inject-files.php -text
exit(1);
}
-chomp($server_admin=`/usr/share/gforge/bin/forge_get_config admin_email`);
+chomp($server_admin=`forge_get_config admin_email`);
# Start to get de News
#-------------------------------------------------------------------------------
exec sudo "$0" "$@"
fi
-CHROOTDIR=$(/usr/share/gforge/bin/forge_get_config chroot)
+CHROOTDIR=$(forge_get_config chroot)
case $1 in
configure)
configure-files)
# Tell PostgreSQL to let us use the database
export FUSIONFORGE_NO_PLUGINS=true
- db_passwd=$(/usr/share/gforge/bin/forge_get_config database_password)
- db_name=$(/usr/share/gforge/bin/forge_get_config database_name)
- db_user=$(/usr/share/gforge/bin/forge_get_config database_user)
+ db_passwd=$(forge_get_config database_password)
+ db_name=$(forge_get_config database_name)
+ db_user=$(forge_get_config database_user)
pattern=$(basename $0).XXXXXX
# PostgreSQL configuration for versions from 7.3 on
configure)
# Create the appropriate database user
export FUSIONFORGE_NO_PLUGINS=true
- db_passwd=$(/usr/share/gforge/bin/forge_get_config database_password)
- db_name=$(/usr/share/gforge/bin/forge_get_config database_name)
- db_user=$(/usr/share/gforge/bin/forge_get_config database_user)
+ db_passwd=$(forge_get_config database_password)
+ db_name=$(forge_get_config database_name)
+ db_user=$(forge_get_config database_user)
pattern=$(basename $0).XXXXXX
tmp1=$(mktemp /tmp/$pattern)
tmp2=$(mktemp /tmp/$pattern)
;;
purge)
export FUSIONFORGE_NO_PLUGINS=true
- db_name=$(/usr/share/gforge/bin/forge_get_config database_name)
- db_user=$(/usr/share/gforge/bin/forge_get_config database_user)
+ db_name=$(forge_get_config database_name)
+ db_user=$(forge_get_config database_user)
su -s /bin/sh postgres -c "dropdb $db_name" > /dev/null 2>&1 || true
su -s /bin/sh postgres -c "dropuser $db_user" > /dev/null 2>&1 || true
;;
#
dump)
export FUSIONFORGE_NO_PLUGINS=true
- db_name=$(/usr/share/gforge/bin/forge_get_config database_name)
+ db_name=$(forge_get_config database_name)
if [ "x$2" != "x" ] ;then
DUMPFILE=$2
else
restore)
pg_name=postgresql-$pg_version
export FUSIONFORGE_NO_PLUGINS=true
- db_name=$(/usr/share/gforge/bin/forge_get_config database_name)
+ db_name=$(forge_get_config database_name)
pattern=$(basename $0).XXXXXX
newpg=$(mktemp /tmp/$pattern)
localtrust="local all all trust"
case "$1" in
configure-files)
cp -a /etc/bind/named.conf /etc/bind/named.conf.gforge-new
- domain_name=`/usr/share/gforge/bin/forge_get_config web_host`
- ip_address=`/usr/share/gforge/bin/forge_get_config ip_address`
+ domain_name=`forge_get_config web_host`
+ ip_address=`forge_get_config ip_address`
# export domain_name=$1
# export ip_address=$2
if ! grep -q "// Next line inserted by GForge install" /etc/bind/named.conf.gforge-new ; then
fi
;;
configure)
- domain_name=`/usr/share/gforge/bin/forge_get_config web_host`
- ip_address=`/usr/share/gforge/bin/forge_get_config ip_address`
- sys_simple_dns=`/usr/share/gforge/bin/forge_get_config simple_dns`
+ domain_name=`forge_get_config web_host`
+ ip_address=`forge_get_config ip_address`
+ sys_simple_dns=`forge_get_config simple_dns`
serial=`date '+%Y%m%d'`01
# scm_host lists_host are useless for now
for i in domain_name ip_address serial ; do
configure-files)
cp -a /etc/aliases /etc/aliases.gforge-new
# Redirect "noreply" mail to the bit bucket (if need be)
- noreply_to_bitbucket=$(/usr/share/gforge/bin/forge_get_config noreply_to_bitbucket)
+ noreply_to_bitbucket=$(forge_get_config noreply_to_bitbucket)
if [ "$noreply_to_bitbucket" != "no" ] ; then
if ! grep -q "^noreply:" /etc/aliases.gforge-new ; then
echo "### Next line inserted by GForge install" >> /etc/aliases.gforge-new
fi
# Redirect "gforge" mail to the site admin
- server_admin=$(/usr/share/gforge/bin/forge_get_config admin_email)
+ server_admin=$(forge_get_config admin_email)
if ! grep -q "^gforge:" /etc/aliases.gforge-new ; then
echo "### Next line inserted by GForge install" >> /etc/aliases.gforge-new
echo "gforge: $server_admin" >> /etc/aliases.gforge-new
tmp1=$(mktemp /tmp/$pattern)
cp -a /etc/aliases /etc/aliases.gforge-new
# Redirect "noreply" mail to the bit bucket (if need be)
- noreply_to_bitbucket=$(/usr/share/gforge/bin/forge_get_config noreply_to_bitbucket)
+ noreply_to_bitbucket=$(forge_get_config noreply_to_bitbucket)
if [ "$noreply_to_bitbucket" != "no" ] ; then
grep -v "^noreply:" /etc/aliases.gforge-new > $tmp1
cat $tmp1 > /etc/aliases.gforge-new
cp -a $cfg_aliases $cfg_aliases_gforge
# Redirect "noreply" mail to the bit bucket (if need be)
- noreply_to_bitbucket=$(/usr/share/gforge/bin/forge_get_config noreply_to_bitbucket)
+ noreply_to_bitbucket=$(forge_get_config noreply_to_bitbucket)
if [ "$noreply_to_bitbucket" != "no" ] ; then
if ! grep -q "^noreply:" $cfg_aliases_gforge; then
echo "### Next line inserted by GForge install" >> $cfg_aliases_gforge
fi
# Redirect "gforge" mail to the site admin
- server_admin=$(/usr/share/gforge/bin/forge_get_config admin_email)
+ server_admin=$(forge_get_config admin_email)
if ! grep -q "^gforge:" $cfg_aliases_gforge; then
echo "### Next line inserted by GForge install" >> $cfg_aliases_gforge
echo "gforge: $server_admin" >> $cfg_aliases_gforge
grep -v "^gforge:" $cfg_aliases_gforge > $tmp1
# Redirect "noreply" mail to the bit bucket (if need be)
- noreply_to_bitbucket=$(/usr/share/gforge/bin/forge_get_config noreply_to_bitbucket)
+ noreply_to_bitbucket=$(forge_get_config noreply_to_bitbucket)
if [ "$noreply_to_bitbucket" != "no" ] ; then
grep -v "^noreply:" $tmp1 > $cfg_aliases_gforge
else
configure-files)
cp -a /etc/aliases /etc/aliases.gforge-new
# Redirect "noreply" mail to the bit bucket (if need be)
- noreply_to_bitbucket=$(/usr/share/gforge/bin/forge_get_config noreply_to_bitbucket)
+ noreply_to_bitbucket=$(forge_get_config noreply_to_bitbucket)
if [ "$noreply_to_bitbucket" != "no" ] ; then
if ! grep -q "^noreply:" /etc/aliases.gforge-new ; then
echo "### Next line inserted by GForge install" >> /etc/aliases.gforge-new
fi
# Redirect "gforge" mail to the site admin
- server_admin=$(/usr/share/gforge/bin/forge_get_config admin_email)
+ server_admin=$(forge_get_config admin_email)
if ! grep -q "^gforge:" /etc/aliases.gforge-new ; then
echo "### Next line inserted by GForge install" >> /etc/aliases.gforge-new
echo "gforge: $server_admin" >> /etc/aliases.gforge-new
configure)
[ -x /usr/bin/newaliases ] && newaliases
- echo "$(/usr/share/gforge/bin/forge_get_config lists_host) mailman:" > /var/lib/gforge/etc/postfix-transport
+ echo "$(forge_get_config lists_host) mailman:" > /var/lib/gforge/etc/postfix-transport
postmap /var/lib/gforge/etc/postfix-transport
;;
tmp1=$(mktemp /tmp/$pattern)
cp -a /etc/aliases /etc/aliases.gforge-new
# Redirect "noreply" mail to the bit bucket (if need be)
- noreply_to_bitbucket=$(/usr/share/gforge/bin/forge_get_config noreply_to_bitbucket)
+ noreply_to_bitbucket=$(forge_get_config noreply_to_bitbucket)
if [ "$noreply_to_bitbucket" != "no" ] ; then
grep -v "^noreply:" /etc/aliases.gforge-new > $tmp1
cat $tmp1 > /etc/aliases.gforge-new
require ("$libdir/sqlparser.pm") ; # Our magic SQL parser
require ("$libdir/sqlhelper.pm") ; # Our SQL functions
require ("$libdir/include.pl"); # Some other functions
-chomp($sys_news_group=`/usr/share/gforge/bin/forge_get_config news_group`);
-chomp($domain_name=`/usr/share/gforge/bin/forge_get_config web_host`);
-chomp($server_admin=`/usr/share/gforge/bin/forge_get_config admin_email`);
+chomp($sys_news_group=`forge_get_config news_group`);
+chomp($domain_name=`forge_get_config web_host`);
+chomp($server_admin=`forge_get_config admin_email`);
&db_connect ;
-fusionforge (5.2.50~-1) UNRELEASED; urgency=low
+fusionforge (5.2.50~-1) experimental; urgency=low
* Bump version number after branching 5.2.
@BINARY_PATH@/install-db.sh configure || v=$?
if test x"$v" = x"100"; then
db_get @PACKAGE@/shared/admin_password || true
- /usr/share/gforge/bin/forge_set_password admin "$RET"
+ forge_set_password admin "$RET"
elif test x"$v" != x"0"; then
exit $v
fi
#
utils/list-admins.php @BINARY_PATH@/
utils/list-projects-using-plugin.php @BINARY_PATH@/
+#
+utils/forge_wrapper @BINARY_PATH@/
/etc/@PACKAGE@/config.ini @CONFIG_PATH@/config.ini
/etc/@PACKAGE@/config.ini.d @CONFIG_PATH@/config.ini.d
@PLUGIN_PATH@/authbuiltin/www @SOURCE_PATH@/www/plugins/authbuiltin
+
+@BINARY_PATH@/forge_wrapper usr/bin/forge_get_config
+@BINARY_PATH@/forge_wrapper usr/bin/forge_run_job
+@BINARY_PATH@/forge_wrapper usr/bin/forge_run_plugin_job
--- /dev/null
+@BINARY_PATH@/forge_wrapper usr/bin/forge_set_password
+@BINARY_PATH@/forge_wrapper usr/bin/forge_make_admin
require ("/usr/share/gforge/lib/include.pl") ; # Include a few predefined functions
require ("/usr/share/gforge/lib/sqlparser.pm") ; # Our magic SQL parser
-chomp($domain_name=`/usr/share/gforge/bin/forge_get_config web_host`);
+chomp($domain_name=`forge_get_config web_host`);
debug "You'll see some debugging info during this installation." ;
debug "Do not worry unless told otherwise." ;
#! /bin/sh
-data_path=$(/usr/share/gforge/bin/forge_get_config data_path)
+data_path=$(forge_get_config data_path)
dataprefix=$data_path/plugins/moinmoin/wikidata
case "$1" in
self.cachedconfig[secname] = {}
if varname not in self.cachedconfig[secname]:
self.cachedconfig[secname][varname] = \
- subprocess.Popen(["/usr/share/gforge/bin/forge_get_config",
+ subprocess.Popen(["forge_get_config",
varname, secname],
stdout=subprocess.PIPE).communicate()[0].rstrip('\n')
return self.cachedconfig[secname][varname]
--- /dev/null
+#! /bin/sh
+
+scriptname=$(basename $0)
+realpath=$(dirname $(readlink -f $(which $0)))
+
+if [ -x $realpath/$scriptname ] ; then
+ exec $realpath/$scriptname "$@"
+else
+ echo "No $scriptname script found."
+ exit 1
+fi
PATH=$PATH:/usr/sbin
setup_vars() {
- db_name=$(/usr/share/gforge/bin/forge_get_config database_name)
- db_user=$(/usr/share/gforge/bin/forge_get_config database_user)
- db_host=$(/usr/share/gforge/bin/forge_get_config database_host)
+ db_name=$(forge_get_config database_name)
+ db_user=$(forge_get_config database_user)
+ db_host=$(forge_get_config database_host)
db_user_nss=${db_user}_nss
if (!isset ($seen[$row['group_id']])) {
print " <item>\n";
print " <title>".htmlspecialchars($row['group_name'])."</title>\n";
- print " <link>http://forge_get_config('web_host')/project/showfiles.php?group_id=$row[group_id]</link>\n";
+ print " <link>http://".forge_get_config('web_host')."/project/showfiles.php?group_id=$row[group_id]</link>\n";
print " <description>".rss_description($row['summary'])."</description>\n";
print " </item>\n";
$outputtotal++;