#!/bin/sh
cd /docker/fluidbook-toolbox-dev
docker plugin install ucphhpc/sshfs --grant-all-permissions
-/home/toolbox/www/scripts/fixrights.sh
+/home/toolbox/dev/scripts/fixrights.sh
chown root:root /home/toolbox/dev/.docker/config/cron/host;ln -sf /home/toolbox/dev/.docker/config/cron/host /etc/cron.d/toolbox-dev
docker network create fluidbook-toolbox-dev
docker compose down
docker volume rm fluidbook-toolbox-dev_sshfsusstorage
docker compose up -d
-/home/toolbox/www/scripts/fixrights.sh
+/home/toolbox/dev/scripts/fixrights.sh
docker exec -it fluidbook-toolbox /application/scripts/update.sh
find /home/toolbox/dev/ -type d \( -path /home/toolbox/dev/.docker \) -prune -o -exec chown -R toolbox:www-data {} \;
public function handle()
{
$region = $this->argument('region');
- $id = $this->argument('id');
+ $ids = explode(',', $this->argument('id'));
if (!in_array($region, Region::getAllRegionsCodes())) {
throw new \Exception('Invalid region ' . $region);
}
- /** @var FluidbookPublication $fb */
- $fb = FluidbookPublication::withoutGlobalScopes()->find($id);
- if (null === $fb) {
- throw new \Exception('Fluidbook ' . $id . ' not found');
+ foreach ($ids as $id) {
+ /** @var FluidbookPublication $fb */
+ $fb = FluidbookPublication::withoutGlobalScopes()->find($id);
+ if (null === $fb) {
+ throw new \Exception('Fluidbook ' . $id . ' not found');
+ }
+ $fb->moveRegion($region);
}
- $fb->moveRegion($region);
}
}