mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +03:00
Rename basefolder 'rainloop' to 'snappymail'
this prevents conflicts with original rainloop
This commit is contained in:
parent
2655f5ea00
commit
d0f686c657
962 changed files with 113 additions and 119 deletions
34
makedeb.sh
34
makedeb.sh
|
|
@ -1,38 +1,38 @@
|
|||
#!/bin/bash
|
||||
#Build RainLoop Webmail Debian Package
|
||||
#Build SnappyMail Webmail Debian Package
|
||||
PACKAGEVERSION="0";
|
||||
|
||||
#Build rainloop
|
||||
#Build snappymail
|
||||
gulp build;
|
||||
cd build/dist/releases/webmail;
|
||||
cd $(ls -t); #Most recent build folder
|
||||
|
||||
#Working directory
|
||||
mkdir rainloop-deb-build;
|
||||
cd rainloop-deb-build;
|
||||
mkdir snappymail-deb-build;
|
||||
cd snappymail-deb-build;
|
||||
|
||||
#Prepare zip file
|
||||
unzip ../rainloop-community-latest.zip;
|
||||
unzip ../snappymail-community-latest.zip;
|
||||
find . -type d -exec chmod 755 {} \;
|
||||
find . -type f -exec chmod 644 {} \;
|
||||
|
||||
#Set up package directory
|
||||
VERSION=$(cat data/VERSION);
|
||||
DIR="rainloop_$VERSION-$PACKAGEVERSION";
|
||||
DIR="snappymail_$VERSION-$PACKAGEVERSION";
|
||||
mkdir -m 0755 -p $DIR;
|
||||
mkdir -m 0755 -p $DIR/usr;
|
||||
mkdir -m 0755 -p $DIR/usr/share;
|
||||
mkdir -m 0755 -p $DIR/usr/share/rainloop;
|
||||
mkdir -m 0755 -p $DIR/usr/share/snappymail;
|
||||
mkdir -m 0755 -p $DIR/var;
|
||||
mkdir -m 0755 -p $DIR/var/lib;
|
||||
|
||||
#Move files into package directory
|
||||
mv rainloop $DIR/usr/share/rainloop/rainloop;
|
||||
mv index.php $DIR/usr/share/rainloop/index.php;
|
||||
mv data $DIR/var/lib/rainloop;
|
||||
mv snappymail $DIR/usr/share/snappymail/snappymail;
|
||||
mv index.php $DIR/usr/share/snappymail/index.php;
|
||||
mv data $DIR/var/lib/snappymail;
|
||||
|
||||
#Update settings for Debian package
|
||||
sed -i "s/\$sCustomDataPath = '';/\$sCustomDataPath = '\/var\/lib\/rainloop';/" $DIR/usr/share/rainloop/rainloop/v/$VERSION/include.php
|
||||
sed -i "s/\$sCustomDataPath = '';/\$sCustomDataPath = '\/var\/lib\/snappymail';/" $DIR/usr/share/snappymail/snappymail/v/$VERSION/include.php
|
||||
|
||||
#Set up Debian packaging tools
|
||||
cd $DIR;
|
||||
|
|
@ -40,22 +40,22 @@ mkdir -m 0755 DEBIAN;
|
|||
|
||||
#Create Debian packging control file
|
||||
cat >> DEBIAN/control <<-EOF
|
||||
Package: rainloop
|
||||
Package: snappymail
|
||||
Version: $VERSION
|
||||
Section: web
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: php5-fpm (>= 5.4), php5-curl, php5-json
|
||||
Maintainer: Rainloop <support@rainloop.net>
|
||||
Depends: php7-fpm (>= 7.3), php7-curl, php7-json
|
||||
Maintainer: SnappyMail <support@snappymail.net>
|
||||
Installed-Size: 20330
|
||||
Description: Rainloop Webmail
|
||||
Description: SnappyMail Webmail
|
||||
A modern PHP webmail client.
|
||||
EOF
|
||||
|
||||
#Create Debian packaging post-install script
|
||||
cat >> DEBIAN/postinst <<-EOF
|
||||
#!/bin/sh
|
||||
chown -R www-data:www-data /var/lib/rainloop
|
||||
chown -R www-data:www-data /var/lib/snappymail
|
||||
EOF
|
||||
chmod +x DEBIAN/postinst;
|
||||
|
||||
|
|
@ -66,4 +66,4 @@ fakeroot dpkg-deb -b $DIR;
|
|||
#Clean up
|
||||
mv $DIR.deb ..;
|
||||
cd ..;
|
||||
rm -rf rainloop-deb-build;
|
||||
rm -rf snappymail-deb-build;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue