|
@@ -29,7 +29,7 @@
|
29
|
29
|
# You should have received a copy of the GNU Affero General Public License
|
30
|
30
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
31
|
31
|
|
32
|
|
-VARIANTS=''
|
|
32
|
+VARIANTS='full full-vim'
|
33
|
33
|
|
34
|
34
|
IN_DEFAULT_INSTALL=0
|
35
|
35
|
SHOW_ON_ABOUT=1
|
|
@@ -293,6 +293,7 @@ function install_pixelfed {
|
293
|
293
|
apt-get -yq install php-gettext php-curl php-gd php-mysql git curl
|
294
|
294
|
apt-get -yq install memcached php-memcached php-intl exiftool libfcgi0ldbl
|
295
|
295
|
apt-get -yq install redis-server php-redis autoconf imagemagick imagemagick-dev libtool
|
|
296
|
+ apt-get -yq install jpegoptim
|
296
|
297
|
|
297
|
298
|
if [ ! "$PIXELFED_DOMAIN_NAME" ]; then
|
298
|
299
|
echo $'No domain name was given'
|
|
@@ -320,7 +321,16 @@ function install_pixelfed {
|
320
|
321
|
git checkout "$PIXELFED_COMMIT" -b "$PIXELFED_COMMIT"
|
321
|
322
|
set_completion_param "pixelfed commit" "$PIXELFED_COMMIT"
|
322
|
323
|
|
323
|
|
- install_composer
|
|
324
|
+ install_composer --no-dev
|
|
325
|
+
|
|
326
|
+ if [ ! -f "/var/www/$PIXELFED_DOMAIN_NAME/htdocs/.env.example" ]; then
|
|
327
|
+ echo $"Can't find .env.example"
|
|
328
|
+ exit 346826285
|
|
329
|
+ fi
|
|
330
|
+ cp "/var/www/$PIXELFED_DOMAIN_NAME/htdocs/.env.example" "/var/www/$PIXELFED_DOMAIN_NAME/htdocs/.env"
|
|
331
|
+
|
|
332
|
+ php artisan key:generate
|
|
333
|
+ php artisan storage:link
|
324
|
334
|
|
325
|
335
|
chmod g+w "/var/www/$PIXELFED_DOMAIN_NAME/htdocs"
|
326
|
336
|
chown -R www-data:www-data "/var/www/$PIXELFED_DOMAIN_NAME/htdocs"
|
|
@@ -419,6 +429,19 @@ function install_pixelfed {
|
419
|
429
|
|
420
|
430
|
create_site_certificate "$PIXELFED_DOMAIN_NAME" 'yes'
|
421
|
431
|
|
|
432
|
+ cd "/var/www/$PIXELFED_DOMAIN_NAME/htdocs" || exit 365845635
|
|
433
|
+
|
|
434
|
+ # hack: within vendor/laravel/framework/src/Illuminate/database/Schema/Blueprint.php
|
|
435
|
+ # change return $this->addColumn('json', $column);
|
|
436
|
+ # to return $this->addColumn('text', $column);
|
|
437
|
+ if [ -f vendor/laravel/framework/src/Illuminate/database/Schema/Blueprint.php ]; then
|
|
438
|
+ sed -i "s|\$this->addColumn('json', \$column);|\$this->addColumn('text', \$column);|g" vendor/laravel/framework/src/Illuminate/database/Schema/Blueprint.php
|
|
439
|
+ else
|
|
440
|
+ find . -name Blueprint.php
|
|
441
|
+ fi
|
|
442
|
+
|
|
443
|
+ php artisan migrate:fresh
|
|
444
|
+
|
422
|
445
|
nginx_ensite "$PIXELFED_DOMAIN_NAME"
|
423
|
446
|
|
424
|
447
|
systemctl restart mariadb
|